using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;

using System.Reflection;
using Gizmox.WebGUI.Common.Resources;
using Gizmox.WebGUI.Forms;

using System.Text;
using System.IO;
using TVC.Layout;
using BUS;
using DTO;

namespace TVC.Modules.Ref
{
    /// <summary>
    /// Summary description for CustomWindowPanelControl.
    /// </summary>

    [Serializable()]
    public class MMT : ModuleParent, IHostedApplication
    {
        //private TabControl tabControl1;
        //private TabPage tbList;
        private Panel tbDetail;
        private Label lblDescription;
        private TextBox txtDescription;
        private TextBox txtCode;
        private Label lbUserName;
        private IContainer components;

        private MenuItem menuItem1;
        private Label label4;
        private TextBox txtSort;
        private Label label3;
        private Label label2;
        private Label label1;
        private TextBox txtMark;
        private TextBox txtLookup;
        private TextBox txtReceived;
        private Label label36;
        private TextBox txtPrefix;
        private Label label35;
        private TextBox txtVision;
        private Label label34;
        private Label label33;
        private TextBox txtDelivery;
        private TextBox txtReferences;
        private Label label32;
        private Label label28;
        private TextBox txtFrequency;
        private TextBox txtPurpose;
        private Label label27;
        private TextBox txtDescription1;
        private Label lbl;
        private Label label31;
        private ComboBox cboSupplier;
        private Label label30;
        private ComboBox cboWellCode;
        private Label label29;
        private ComboBox cboDepartment;
        private Label label25;
        private TextBox txtAmount;
        private ComboBox cboPO;
        private Label label24;
        private Label label23;
        private ComboBox cboAccountCode;
        private ComboBox cboStatus;
        private Label label6;
        private Label label5;
        private ComboBox cboItemCode;
        private ComboBox cboTo;
        private ComboBox comboBox3;
        private Label label7;
        private Label label8;
        private ComboBox comboBox4;
        private ComboBox comboBox5;
        private Label label9;
        private TextBox textBox4;
        private Label label10;
        private Label label11;
        private Label label12;
        private TextBox textBox5;
        private TextBox textBox6;
        private Label label13;
        private TextBox textBox7;
        private TextBox textBox8;
        private Label label14;
        //private TabPage tabPage1;
        private ComboBox comboBox6;
        private Label label15;
        private Label label16;
        private ComboBox comboBox7;
        private ComboBox comboBox8;
        private Label label17;
        private TextBox textBox9;
        private Label label18;
        private Label label19;
        private Label label20;
        private TextBox textBox10;
        private TextBox textBox11;
        private Label label21;
        private TextBox textBox12;
        private TextBox textBox13;
        private Label label22;
        //private TabPage tabPage2;
        private TextBox txtlblSupplier;
        private CheckBox chkSuppend;
        private Panel panel2;
        private Panel pnDetail;
        private System.Windows.Forms.Label label38;
        private System.Windows.Forms.ComboBox comboBox12;
        private System.Windows.Forms.ComboBox comboBox13;
        private System.Windows.Forms.Label label39;
        private System.Windows.Forms.Label label40;
        private System.Windows.Forms.ComboBox comboBox14;
        private System.Windows.Forms.ComboBox comboBox18;
        private System.Windows.Forms.Label label41;
        private System.Windows.Forms.ComboBox comboBox19;
        private System.Windows.Forms.Label label42;
        private System.Windows.Forms.Label label43;
        private System.Windows.Forms.Label label44;
        private System.Windows.Forms.Label label45;
        private System.Windows.Forms.ComboBox comboBox20;
        private System.Windows.Forms.ComboBox comboBox21;
        private System.Windows.Forms.TextBox textBox24;
        private System.Windows.Forms.Label label46;
        private System.Windows.Forms.Label label47;
        private System.Windows.Forms.Label label48;
        private System.Windows.Forms.Label label49;
        private System.Windows.Forms.ComboBox comboBox22;
        private System.Windows.Forms.TextBox textBox25;
        private System.Windows.Forms.ComboBox comboBox23;
        private System.Windows.Forms.TextBox textBox26;
        private System.Windows.Forms.Label label50;
        private System.Windows.Forms.Label label51;
        private System.Windows.Forms.TextBox textBox27;
        private System.Windows.Forms.Label label52;
        private System.Windows.Forms.Label label53;
        private System.Windows.Forms.TextBox textBox28;
        private System.Windows.Forms.Label label54;
        private System.Windows.Forms.Label label55;
        private System.Windows.Forms.Label label56;
        private System.Windows.Forms.TextBox textBox29;
        private System.Windows.Forms.TextBox textBox30;
        private System.Windows.Forms.Label label57;
        private System.Windows.Forms.TextBox textBox31;
        private System.Windows.Forms.TextBox textBox32;
        private System.Windows.Forms.Label label58;
        private System.Windows.Forms.CheckBox checkBox13;
        private System.Windows.Forms.TextBox textBox33;
        private System.Windows.Forms.Label label59;
        private System.Windows.Forms.TextBox textBox34;
        private System.Windows.Forms.TextBox textBox35;
        private System.Windows.Forms.Label label60;
        private System.Windows.Forms.TextBox textBox36;
        private VirtualDataGridView dgvDataSource;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn34;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn35;
        private BindingSource bisSource;
        private BindingSource bisMMT;
        private DataGridViewComboBoxColumn dataGridViewComboBoxColumn1;
        private DataGridViewComboBoxColumn colFieldName;
        private Label label26;
        private ComboBox cboLocaltion;
        private CustomControl.MultiColumnCombo mcbSupplier;
        private CustomControl.MultiColumnCombo mcbItemCode;
        private PictureBox picItemCode;
        private PictureBox picSupplier;
        private ContextMenu ctmGrid;
        private MenuItem menuItem2;
        private MenuItem mnuSaveLayout;
        private MenuItem mnuResetLayout;
        private MenuItem mnuShowFilter;
        private Label label37;
        private ExpandableGroupBox expandableGroupBox1;
        private CheckBox chkDelivery;
        private CheckBox chkDepartment;
        private CheckBox chkShipdate;
        private CheckBox chkWell;
        private CheckBox chkShipBy;
        private CheckBox chkFrom;
        private CheckBox chkSupplier;
        private CheckBox chkPI;
        private CheckBox chkPO;
        private CheckBox chkBL;
        private CheckBox chkTo;
        private DataGridView dgvList;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn36;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn37;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn38;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn39;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn40;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn41;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn42;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn43;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn44;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn45;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn46;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn47;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn48;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn49;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn50;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn51;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn52;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn53;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn54;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn55;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn56;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn57;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn58;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn59;
        private Panel panel1;
        private CheckBox ckbBudgetAC;
        private CheckBox ckbBudget;
        private Label label62;
        private Label label61;
        private ComboBox cboBudgetAC;
        private ComboBox cboBudget;
        GridLayout layout = null;
        public MMT()
        {
            // This call is required by the WebGUI Form Designer.
            InitializeComponent();
            _strType = "MMT";
            _dgvList = dgvList;
            PODInfo = (DTO.PODInfo)Session["USER"];
            _Connecstr = MainForm.HLConnect;
        }

        protected override void AllowEditLanguage()
        {
            //dgvList.MenuClick += dgvList_MenuClick;
            //lbUserName.DoubleClick += Control_DoubleClick;
            //lblDbDefault.DoubleClick += Control_DoubleClick;
            //lblDescription.DoubleClick += Control_DoubleClick;
            //lblLanguage.DoubleClick += Control_DoubleClick;
            //lklRole.DoubleClick += Control_DoubleClick;
            //tabControl1.DoubleClick += tabMain_DoubleClick;
            //ContextMenu menu = new ContextMenu();
            //menu.MenuItems.Add(new MenuItem("Edit Language"));
            //dgvList.ContextMenu = menu;
        }






        protected override void LoadLanguage(string language)
        {
            //clsConfigurarion.GetLabel(this.ToString(), lbUserName, language);
            //clsConfigurarion.GetLabel(this.ToString(), lblDescription, language);
            //clsConfigurarion.GetLabel(this.ToString(), lblLanguage, language);
            //clsConfigurarion.GetLabel(this.ToString(), lblDbDefault, language);
            //clsConfigurarion.GetLabel(this.ToString(), lklRole, language);
            //clsConfigurarion.GetLabel(this.ToString(), tbDetail, language);
            //clsConfigurarion.GetLabel(this.ToString(), tbList, language);

            //if (this.Parent is HeaderedPanel)
            //{
            //    HeaderedPanel pln = this.Parent as HeaderedPanel;
            //    _title = clsConfigurarion.GetLabel(this.ToString(), "", null, language);
            //}
        }


        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            Gizmox.WebGUI.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new Gizmox.WebGUI.Forms.DataGridViewCellStyle();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MMT));
            this.tbDetail = new Gizmox.WebGUI.Forms.Panel();
            this.dgvList = new Gizmox.WebGUI.Forms.DataGridView();
            this.dataGridViewTextBoxColumn36 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn37 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn38 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn39 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn40 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn41 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn42 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn43 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn44 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn45 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn46 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn47 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn48 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn49 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn50 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn51 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn52 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn53 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn54 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn55 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn56 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn57 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn58 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn59 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.ctmGrid = new Gizmox.WebGUI.Forms.ContextMenu();
            this.menuItem2 = new Gizmox.WebGUI.Forms.MenuItem();
            this.mnuSaveLayout = new Gizmox.WebGUI.Forms.MenuItem();
            this.mnuResetLayout = new Gizmox.WebGUI.Forms.MenuItem();
            this.mnuShowFilter = new Gizmox.WebGUI.Forms.MenuItem();
            this.bisMMT = new Gizmox.WebGUI.Forms.BindingSource(this.components);
            this.panel1 = new Gizmox.WebGUI.Forms.Panel();
            this.panel2 = new Gizmox.WebGUI.Forms.Panel();
            this.dgvDataSource = new Gizmox.WebGUI.Forms.VirtualDataGridView();
            this.dataGridViewTextBoxColumn1 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.colFieldName = new Gizmox.WebGUI.Forms.DataGridViewComboBoxColumn();
            this.dataGridViewTextBoxColumn4 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn6 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewComboBoxColumn1 = new Gizmox.WebGUI.Forms.DataGridViewComboBoxColumn();
            this.dataGridViewTextBoxColumn34 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn35 = new Gizmox.WebGUI.Forms.DataGridViewTextBoxColumn();
            this.bisSource = new Gizmox.WebGUI.Forms.BindingSource(this.components);
            this.expandableGroupBox1 = new Gizmox.WebGUI.Forms.ExpandableGroupBox();
            this.ckbBudgetAC = new Gizmox.WebGUI.Forms.CheckBox();
            this.ckbBudget = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkDelivery = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkDepartment = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkShipdate = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkWell = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkShipBy = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkFrom = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkSupplier = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkPI = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkPO = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkBL = new Gizmox.WebGUI.Forms.CheckBox();
            this.chkTo = new Gizmox.WebGUI.Forms.CheckBox();
            this.pnDetail = new Gizmox.WebGUI.Forms.Panel();
            this.label62 = new Gizmox.WebGUI.Forms.Label();
            this.label61 = new Gizmox.WebGUI.Forms.Label();
            this.cboBudgetAC = new Gizmox.WebGUI.Forms.ComboBox();
            this.cboBudget = new Gizmox.WebGUI.Forms.ComboBox();
            this.label37 = new Gizmox.WebGUI.Forms.Label();
            this.mcbSupplier = new TVC.Modules.CustomControl.MultiColumnCombo();
            this.mcbItemCode = new TVC.Modules.CustomControl.MultiColumnCombo();
            this.picItemCode = new Gizmox.WebGUI.Forms.PictureBox();
            this.picSupplier = new Gizmox.WebGUI.Forms.PictureBox();
            this.label26 = new Gizmox.WebGUI.Forms.Label();
            this.cboLocaltion = new Gizmox.WebGUI.Forms.ComboBox();
            this.txtPurpose = new Gizmox.WebGUI.Forms.TextBox();
            this.lbUserName = new Gizmox.WebGUI.Forms.Label();
            this.txtReferences = new Gizmox.WebGUI.Forms.TextBox();
            this.cboItemCode = new Gizmox.WebGUI.Forms.ComboBox();
            this.cboTo = new Gizmox.WebGUI.Forms.ComboBox();
            this.txtlblSupplier = new Gizmox.WebGUI.Forms.TextBox();
            this.label32 = new Gizmox.WebGUI.Forms.Label();
            this.txtDescription1 = new Gizmox.WebGUI.Forms.TextBox();
            this.txtDelivery = new Gizmox.WebGUI.Forms.TextBox();
            this.txtCode = new Gizmox.WebGUI.Forms.TextBox();
            this.label5 = new Gizmox.WebGUI.Forms.Label();
            this.label29 = new Gizmox.WebGUI.Forms.Label();
            this.label4 = new Gizmox.WebGUI.Forms.Label();
            this.label28 = new Gizmox.WebGUI.Forms.Label();
            this.cboWellCode = new Gizmox.WebGUI.Forms.ComboBox();
            this.label33 = new Gizmox.WebGUI.Forms.Label();
            this.txtDescription = new Gizmox.WebGUI.Forms.TextBox();
            this.label6 = new Gizmox.WebGUI.Forms.Label();
            this.cboDepartment = new Gizmox.WebGUI.Forms.ComboBox();
            this.txtSort = new Gizmox.WebGUI.Forms.TextBox();
            this.chkSuppend = new Gizmox.WebGUI.Forms.CheckBox();
            this.txtFrequency = new Gizmox.WebGUI.Forms.TextBox();
            this.label30 = new Gizmox.WebGUI.Forms.Label();
            this.label34 = new Gizmox.WebGUI.Forms.Label();
            this.lblDescription = new Gizmox.WebGUI.Forms.Label();
            this.cboStatus = new Gizmox.WebGUI.Forms.ComboBox();
            this.label25 = new Gizmox.WebGUI.Forms.Label();
            this.label3 = new Gizmox.WebGUI.Forms.Label();
            this.txtReceived = new Gizmox.WebGUI.Forms.TextBox();
            this.txtAmount = new Gizmox.WebGUI.Forms.TextBox();
            this.cboSupplier = new Gizmox.WebGUI.Forms.ComboBox();
            this.txtVision = new Gizmox.WebGUI.Forms.TextBox();
            this.txtLookup = new Gizmox.WebGUI.Forms.TextBox();
            this.label27 = new Gizmox.WebGUI.Forms.Label();
            this.cboAccountCode = new Gizmox.WebGUI.Forms.ComboBox();
            this.label2 = new Gizmox.WebGUI.Forms.Label();
            this.label36 = new Gizmox.WebGUI.Forms.Label();
            this.label23 = new Gizmox.WebGUI.Forms.Label();
            this.label31 = new Gizmox.WebGUI.Forms.Label();
            this.label35 = new Gizmox.WebGUI.Forms.Label();
            this.txtMark = new Gizmox.WebGUI.Forms.TextBox();
            this.label24 = new Gizmox.WebGUI.Forms.Label();
            this.cboPO = new Gizmox.WebGUI.Forms.ComboBox();
            this.label1 = new Gizmox.WebGUI.Forms.Label();
            this.txtPrefix = new Gizmox.WebGUI.Forms.TextBox();
            this.lbl = new Gizmox.WebGUI.Forms.Label();
            this.menuItem1 = new Gizmox.WebGUI.Forms.MenuItem();
            this.comboBox3 = new Gizmox.WebGUI.Forms.ComboBox();
            this.label7 = new Gizmox.WebGUI.Forms.Label();
            this.label8 = new Gizmox.WebGUI.Forms.Label();
            this.comboBox4 = new Gizmox.WebGUI.Forms.ComboBox();
            this.comboBox5 = new Gizmox.WebGUI.Forms.ComboBox();
            this.label9 = new Gizmox.WebGUI.Forms.Label();
            this.textBox4 = new Gizmox.WebGUI.Forms.TextBox();
            this.label10 = new Gizmox.WebGUI.Forms.Label();
            this.label11 = new Gizmox.WebGUI.Forms.Label();
            this.label12 = new Gizmox.WebGUI.Forms.Label();
            this.textBox5 = new Gizmox.WebGUI.Forms.TextBox();
            this.textBox6 = new Gizmox.WebGUI.Forms.TextBox();
            this.label13 = new Gizmox.WebGUI.Forms.Label();
            this.textBox7 = new Gizmox.WebGUI.Forms.TextBox();
            this.textBox8 = new Gizmox.WebGUI.Forms.TextBox();
            this.label14 = new Gizmox.WebGUI.Forms.Label();
            this.comboBox6 = new Gizmox.WebGUI.Forms.ComboBox();
            this.label15 = new Gizmox.WebGUI.Forms.Label();
            this.label16 = new Gizmox.WebGUI.Forms.Label();
            this.comboBox7 = new Gizmox.WebGUI.Forms.ComboBox();
            this.comboBox8 = new Gizmox.WebGUI.Forms.ComboBox();
            this.label17 = new Gizmox.WebGUI.Forms.Label();
            this.textBox9 = new Gizmox.WebGUI.Forms.TextBox();
            this.label18 = new Gizmox.WebGUI.Forms.Label();
            this.label19 = new Gizmox.WebGUI.Forms.Label();
            this.label20 = new Gizmox.WebGUI.Forms.Label();
            this.textBox10 = new Gizmox.WebGUI.Forms.TextBox();
            this.textBox11 = new Gizmox.WebGUI.Forms.TextBox();
            this.label21 = new Gizmox.WebGUI.Forms.Label();
            this.textBox12 = new Gizmox.WebGUI.Forms.TextBox();
            this.textBox13 = new Gizmox.WebGUI.Forms.TextBox();
            this.label22 = new Gizmox.WebGUI.Forms.Label();
            this.label38 = new System.Windows.Forms.Label();
            this.comboBox12 = new System.Windows.Forms.ComboBox();
            this.comboBox13 = new System.Windows.Forms.ComboBox();
            this.label39 = new System.Windows.Forms.Label();
            this.label40 = new System.Windows.Forms.Label();
            this.comboBox14 = new System.Windows.Forms.ComboBox();
            this.comboBox18 = new System.Windows.Forms.ComboBox();
            this.label41 = new System.Windows.Forms.Label();
            this.comboBox19 = new System.Windows.Forms.ComboBox();
            this.label42 = new System.Windows.Forms.Label();
            this.label43 = new System.Windows.Forms.Label();
            this.label44 = new System.Windows.Forms.Label();
            this.label45 = new System.Windows.Forms.Label();
            this.comboBox20 = new System.Windows.Forms.ComboBox();
            this.comboBox21 = new System.Windows.Forms.ComboBox();
            this.textBox24 = new System.Windows.Forms.TextBox();
            this.label46 = new System.Windows.Forms.Label();
            this.label47 = new System.Windows.Forms.Label();
            this.label48 = new System.Windows.Forms.Label();
            this.label49 = new System.Windows.Forms.Label();
            this.comboBox22 = new System.Windows.Forms.ComboBox();
            this.textBox25 = new System.Windows.Forms.TextBox();
            this.comboBox23 = new System.Windows.Forms.ComboBox();
            this.textBox26 = new System.Windows.Forms.TextBox();
            this.label50 = new System.Windows.Forms.Label();
            this.label51 = new System.Windows.Forms.Label();
            this.textBox27 = new System.Windows.Forms.TextBox();
            this.label52 = new System.Windows.Forms.Label();
            this.label53 = new System.Windows.Forms.Label();
            this.textBox28 = new System.Windows.Forms.TextBox();
            this.label54 = new System.Windows.Forms.Label();
            this.label55 = new System.Windows.Forms.Label();
            this.label56 = new System.Windows.Forms.Label();
            this.textBox29 = new System.Windows.Forms.TextBox();
            this.textBox30 = new System.Windows.Forms.TextBox();
            this.label57 = new System.Windows.Forms.Label();
            this.textBox31 = new System.Windows.Forms.TextBox();
            this.textBox32 = new System.Windows.Forms.TextBox();
            this.label58 = new System.Windows.Forms.Label();
            this.checkBox13 = new System.Windows.Forms.CheckBox();
            this.textBox33 = new System.Windows.Forms.TextBox();
            this.label59 = new System.Windows.Forms.Label();
            this.textBox34 = new System.Windows.Forms.TextBox();
            this.textBox35 = new System.Windows.Forms.TextBox();
            this.label60 = new System.Windows.Forms.Label();
            this.textBox36 = new System.Windows.Forms.TextBox();
            this.tbDetail.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvList)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bisMMT)).BeginInit();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvDataSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.bisSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.expandableGroupBox1)).BeginInit();
            this.expandableGroupBox1.SuspendLayout();
            this.pnDetail.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.picItemCode)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picSupplier)).BeginInit();
            this.SuspendLayout();
            // 
            // errProvider
            // 
            this.errProvider.BlinkStyle = Gizmox.WebGUI.Forms.ErrorBlinkStyle.BlinkIfDifferentError;
            // 
            // warnProvider
            // 
            this.warnProvider.BlinkStyle = Gizmox.WebGUI.Forms.ErrorBlinkStyle.BlinkIfDifferentError;
            // 
            // tbDetail
            // 
            this.tbDetail.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)(((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Left) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Right)));
            this.tbDetail.Controls.Add(this.dgvList);
            this.tbDetail.Controls.Add(this.panel1);
            this.tbDetail.Location = new System.Drawing.Point(0, 0);
            this.tbDetail.Name = "tbDetail";
            this.tbDetail.Size = new System.Drawing.Size(1040, 777);
            this.tbDetail.TabIndex = 1;
            this.tbDetail.Text = "Detail";
            // 
            // dgvList
            // 
            this.dgvList.AllowDrag = false;
            this.dgvList.AllowUserToAddRows = false;
            this.dgvList.AllowUserToDeleteRows = false;
            this.dgvList.AllowUserToResizeRows = false;
            this.dgvList.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)((((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Bottom) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Left) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Right)));
            this.dgvList.AutoGenerateColumns = false;
            this.dgvList.BackgroundColor = System.Drawing.Color.White;
            this.dgvList.ColumnHeadersHeightSizeMode = Gizmox.WebGUI.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvList.Columns.AddRange(new Gizmox.WebGUI.Forms.DataGridViewColumn[] {
            this.dataGridViewTextBoxColumn36,
            this.dataGridViewTextBoxColumn37,
            this.dataGridViewTextBoxColumn38,
            this.dataGridViewTextBoxColumn39,
            this.dataGridViewTextBoxColumn40,
            this.dataGridViewTextBoxColumn41,
            this.dataGridViewTextBoxColumn42,
            this.dataGridViewTextBoxColumn43,
            this.dataGridViewTextBoxColumn44,
            this.dataGridViewTextBoxColumn45,
            this.dataGridViewTextBoxColumn46,
            this.dataGridViewTextBoxColumn47,
            this.dataGridViewTextBoxColumn48,
            this.dataGridViewTextBoxColumn49,
            this.dataGridViewTextBoxColumn50,
            this.dataGridViewTextBoxColumn51,
            this.dataGridViewTextBoxColumn52,
            this.dataGridViewTextBoxColumn53,
            this.dataGridViewTextBoxColumn54,
            this.dataGridViewTextBoxColumn55,
            this.dataGridViewTextBoxColumn56,
            this.dataGridViewTextBoxColumn57,
            this.dataGridViewTextBoxColumn58,
            this.dataGridViewTextBoxColumn59});
            this.dgvList.ContextMenu = this.ctmGrid;
            this.dgvList.DataSource = this.bisMMT;
            this.dgvList.ItemsPerPage = 50;
            this.dgvList.Location = new System.Drawing.Point(0, 416);
            this.dgvList.Name = "dgvList";
            this.dgvList.RowHeadersWidth = 25;
            this.dgvList.RowTemplate.DefaultCellStyle.FormatProvider = new System.Globalization.CultureInfo("en-US");
            this.dgvList.SelectionMode = Gizmox.WebGUI.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dgvList.ShowFilterRow = true;
            this.dgvList.Size = new System.Drawing.Size(1040, 361);
            this.dgvList.TabIndex = 0;
            // 
            // dataGridViewTextBoxColumn36
            // 
            this.dataGridViewTextBoxColumn36.DataPropertyName = "Code";
            this.dataGridViewTextBoxColumn36.DefaultCellStyle = dataGridViewCellStyle1;
            this.dataGridViewTextBoxColumn36.HeaderText = "Code";
            this.dataGridViewTextBoxColumn36.Name = "dataGridViewTextBoxColumn36";
            // 
            // dataGridViewTextBoxColumn37
            // 
            this.dataGridViewTextBoxColumn37.DataPropertyName = "Lookup";
            this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle2;
            this.dataGridViewTextBoxColumn37.HeaderText = "Lookup";
            this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37";
            // 
            // dataGridViewTextBoxColumn38
            // 
            this.dataGridViewTextBoxColumn38.DataPropertyName = "Mark";
            this.dataGridViewTextBoxColumn38.DefaultCellStyle = dataGridViewCellStyle3;
            this.dataGridViewTextBoxColumn38.HeaderText = "Mark";
            this.dataGridViewTextBoxColumn38.Name = "dataGridViewTextBoxColumn38";
            // 
            // dataGridViewTextBoxColumn39
            // 
            this.dataGridViewTextBoxColumn39.DataPropertyName = "Description";
            this.dataGridViewTextBoxColumn39.DefaultCellStyle = dataGridViewCellStyle4;
            this.dataGridViewTextBoxColumn39.HeaderText = "Description";
            this.dataGridViewTextBoxColumn39.Name = "dataGridViewTextBoxColumn39";
            // 
            // dataGridViewTextBoxColumn40
            // 
            this.dataGridViewTextBoxColumn40.DataPropertyName = "From_";
            this.dataGridViewTextBoxColumn40.DefaultCellStyle = dataGridViewCellStyle5;
            this.dataGridViewTextBoxColumn40.HeaderText = "From_";
            this.dataGridViewTextBoxColumn40.Name = "dataGridViewTextBoxColumn40";
            // 
            // dataGridViewTextBoxColumn41
            // 
            this.dataGridViewTextBoxColumn41.DataPropertyName = "To_";
            this.dataGridViewTextBoxColumn41.DefaultCellStyle = dataGridViewCellStyle6;
            this.dataGridViewTextBoxColumn41.HeaderText = "To_";
            this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41";
            // 
            // dataGridViewTextBoxColumn42
            // 
            this.dataGridViewTextBoxColumn42.DataPropertyName = "ItemCode";
            this.dataGridViewTextBoxColumn42.DefaultCellStyle = dataGridViewCellStyle7;
            this.dataGridViewTextBoxColumn42.HeaderText = "ItemCode";
            this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42";
            // 
            // dataGridViewTextBoxColumn43
            // 
            this.dataGridViewTextBoxColumn43.DataPropertyName = "Status";
            this.dataGridViewTextBoxColumn43.DefaultCellStyle = dataGridViewCellStyle8;
            this.dataGridViewTextBoxColumn43.HeaderText = "Status";
            this.dataGridViewTextBoxColumn43.Name = "dataGridViewTextBoxColumn43";
            // 
            // dataGridViewTextBoxColumn44
            // 
            this.dataGridViewTextBoxColumn44.DataPropertyName = "Amount";
            this.dataGridViewTextBoxColumn44.DefaultCellStyle = dataGridViewCellStyle9;
            this.dataGridViewTextBoxColumn44.HeaderText = "Amount";
            this.dataGridViewTextBoxColumn44.Name = "dataGridViewTextBoxColumn44";
            // 
            // dataGridViewTextBoxColumn45
            // 
            this.dataGridViewTextBoxColumn45.DataPropertyName = "POSOContract";
            this.dataGridViewTextBoxColumn45.DefaultCellStyle = dataGridViewCellStyle10;
            this.dataGridViewTextBoxColumn45.HeaderText = "POSOContract";
            this.dataGridViewTextBoxColumn45.Name = "dataGridViewTextBoxColumn45";
            // 
            // dataGridViewTextBoxColumn46
            // 
            this.dataGridViewTextBoxColumn46.DataPropertyName = "Supplier";
            this.dataGridViewTextBoxColumn46.DefaultCellStyle = dataGridViewCellStyle11;
            this.dataGridViewTextBoxColumn46.HeaderText = "Supplier";
            this.dataGridViewTextBoxColumn46.Name = "dataGridViewTextBoxColumn46";
            // 
            // dataGridViewTextBoxColumn47
            // 
            this.dataGridViewTextBoxColumn47.DataPropertyName = "WellCode";
            this.dataGridViewTextBoxColumn47.DefaultCellStyle = dataGridViewCellStyle12;
            this.dataGridViewTextBoxColumn47.HeaderText = "WellCode";
            this.dataGridViewTextBoxColumn47.Name = "dataGridViewTextBoxColumn47";
            // 
            // dataGridViewTextBoxColumn48
            // 
            this.dataGridViewTextBoxColumn48.DataPropertyName = "Department";
            this.dataGridViewTextBoxColumn48.DefaultCellStyle = dataGridViewCellStyle13;
            this.dataGridViewTextBoxColumn48.HeaderText = "Department";
            this.dataGridViewTextBoxColumn48.Name = "dataGridViewTextBoxColumn48";
            // 
            // dataGridViewTextBoxColumn49
            // 
            this.dataGridViewTextBoxColumn49.DataPropertyName = "Location";
            this.dataGridViewTextBoxColumn49.DefaultCellStyle = dataGridViewCellStyle14;
            this.dataGridViewTextBoxColumn49.HeaderText = "Location";
            this.dataGridViewTextBoxColumn49.Name = "dataGridViewTextBoxColumn49";
            // 
            // dataGridViewTextBoxColumn50
            // 
            this.dataGridViewTextBoxColumn50.DataPropertyName = "Account";
            this.dataGridViewTextBoxColumn50.DefaultCellStyle = dataGridViewCellStyle15;
            this.dataGridViewTextBoxColumn50.HeaderText = "Account";
            this.dataGridViewTextBoxColumn50.Name = "dataGridViewTextBoxColumn50";
            // 
            // dataGridViewTextBoxColumn51
            // 
            this.dataGridViewTextBoxColumn51.DataPropertyName = "Description1";
            this.dataGridViewTextBoxColumn51.DefaultCellStyle = dataGridViewCellStyle16;
            this.dataGridViewTextBoxColumn51.HeaderText = "Description1";
            this.dataGridViewTextBoxColumn51.Name = "dataGridViewTextBoxColumn51";
            // 
            // dataGridViewTextBoxColumn52
            // 
            this.dataGridViewTextBoxColumn52.DataPropertyName = "Purpose";
            this.dataGridViewTextBoxColumn52.DefaultCellStyle = dataGridViewCellStyle17;
            this.dataGridViewTextBoxColumn52.HeaderText = "Purpose";
            this.dataGridViewTextBoxColumn52.Name = "dataGridViewTextBoxColumn52";
            // 
            // dataGridViewTextBoxColumn53
            // 
            this.dataGridViewTextBoxColumn53.DataPropertyName = "Frequency";
            this.dataGridViewTextBoxColumn53.DefaultCellStyle = dataGridViewCellStyle18;
            this.dataGridViewTextBoxColumn53.HeaderText = "Frequency";
            this.dataGridViewTextBoxColumn53.Name = "dataGridViewTextBoxColumn53";
            // 
            // dataGridViewTextBoxColumn54
            // 
            this.dataGridViewTextBoxColumn54.DataPropertyName = "Reference";
            this.dataGridViewTextBoxColumn54.DefaultCellStyle = dataGridViewCellStyle19;
            this.dataGridViewTextBoxColumn54.HeaderText = "Reference";
            this.dataGridViewTextBoxColumn54.Name = "dataGridViewTextBoxColumn54";
            // 
            // dataGridViewTextBoxColumn55
            // 
            this.dataGridViewTextBoxColumn55.DataPropertyName = "DeliveryPoint";
            this.dataGridViewTextBoxColumn55.DefaultCellStyle = dataGridViewCellStyle20;
            this.dataGridViewTextBoxColumn55.HeaderText = "DeliveryPoint";
            this.dataGridViewTextBoxColumn55.Name = "dataGridViewTextBoxColumn55";
            // 
            // dataGridViewTextBoxColumn56
            // 
            this.dataGridViewTextBoxColumn56.DataPropertyName = "ReceivedIssued";
            this.dataGridViewTextBoxColumn56.DefaultCellStyle = dataGridViewCellStyle21;
            this.dataGridViewTextBoxColumn56.HeaderText = "ReceivedIssued";
            this.dataGridViewTextBoxColumn56.Name = "dataGridViewTextBoxColumn56";
            // 
            // dataGridViewTextBoxColumn57
            // 
            this.dataGridViewTextBoxColumn57.DataPropertyName = "Template";
            this.dataGridViewTextBoxColumn57.DefaultCellStyle = dataGridViewCellStyle22;
            this.dataGridViewTextBoxColumn57.HeaderText = "Template";
            this.dataGridViewTextBoxColumn57.Name = "dataGridViewTextBoxColumn57";
            // 
            // dataGridViewTextBoxColumn58
            // 
            this.dataGridViewTextBoxColumn58.DataPropertyName = "Prefix";
            this.dataGridViewTextBoxColumn58.DefaultCellStyle = dataGridViewCellStyle23;
            this.dataGridViewTextBoxColumn58.HeaderText = "Prefix";
            this.dataGridViewTextBoxColumn58.Name = "dataGridViewTextBoxColumn58";
            // 
            // dataGridViewTextBoxColumn59
            // 
            this.dataGridViewTextBoxColumn59.DataPropertyName = "Suppend";
            this.dataGridViewTextBoxColumn59.DefaultCellStyle = dataGridViewCellStyle24;
            this.dataGridViewTextBoxColumn59.HeaderText = "Suppend";
            this.dataGridViewTextBoxColumn59.Name = "dataGridViewTextBoxColumn59";
            // 
            // ctmGrid
            // 
            this.ctmGrid.MenuItems.AddRange(new Gizmox.WebGUI.Forms.MenuItem[] {
            this.menuItem2,
            this.mnuShowFilter});
            // 
            // menuItem2
            // 
            this.menuItem2.Index = 0;
            this.menuItem2.MenuItems.AddRange(new Gizmox.WebGUI.Forms.MenuItem[] {
            this.mnuSaveLayout,
            this.mnuResetLayout});
            this.menuItem2.Text = "Layout";
            // 
            // mnuSaveLayout
            // 
            this.mnuSaveLayout.Index = 0;
            this.mnuSaveLayout.Tag = "SAVE";
            this.mnuSaveLayout.Text = "Save Layout";
            // 
            // mnuResetLayout
            // 
            this.mnuResetLayout.Index = 1;
            this.mnuResetLayout.Tag = "RESET";
            this.mnuResetLayout.Text = "Reset Layout";
            // 
            // mnuShowFilter
            // 
            this.mnuShowFilter.Index = 1;
            this.mnuShowFilter.Tag = "FILTER";
            this.mnuShowFilter.Text = "Filter Records";
            // 
            // bisMMT
            // 
            this.bisMMT.DataSource = typeof(DTO.TVC_MVPInfo);
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Controls.Add(this.pnDetail);
            this.panel1.Dock = Gizmox.WebGUI.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 319);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(1040, 416);
            this.panel1.TabIndex = 27;
            // 
            // panel2
            // 
            this.panel2.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)((((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Bottom) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Left) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Right)));
            this.panel2.Controls.Add(this.dgvDataSource);
            this.panel2.Controls.Add(this.expandableGroupBox1);
            this.panel2.Location = new System.Drawing.Point(668, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(372, 416);
            this.panel2.TabIndex = 26;
            // 
            // dgvDataSource
            // 
            this.dgvDataSource.AllowDrag = false;
            this.dgvDataSource.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)((((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Bottom) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Left) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Right)));
            this.dgvDataSource.AutoGenerateColumns = false;
            this.dgvDataSource.BackgroundColor = System.Drawing.Color.White;
            dataGridViewCellStyle25.Alignment = Gizmox.WebGUI.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control;
            dataGridViewCellStyle25.Font = new System.Drawing.Font("Tahoma", 8.25F);
            dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle25.FormatProvider = new System.Globalization.CultureInfo("en-US");
            dataGridViewCellStyle25.SelectionBackColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.Desktop;
            dataGridViewCellStyle25.WrapMode = Gizmox.WebGUI.Forms.DataGridViewTriState.True;
            this.dgvDataSource.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle25;
            this.dgvDataSource.ColumnHeadersHeight = 20;
            this.dgvDataSource.ColumnHeadersHeightSizeMode = Gizmox.WebGUI.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvDataSource.Columns.AddRange(new Gizmox.WebGUI.Forms.DataGridViewColumn[] {
            this.dataGridViewTextBoxColumn1,
            this.dataGridViewTextBoxColumn2,
            this.colFieldName,
            this.dataGridViewTextBoxColumn4,
            this.dataGridViewTextBoxColumn5,
            this.dataGridViewTextBoxColumn6,
            this.dataGridViewComboBoxColumn1,
            this.dataGridViewTextBoxColumn34,
            this.dataGridViewTextBoxColumn35});
            this.dgvDataSource.CustomStyle = "V";
            this.dgvDataSource.DataSource = this.bisSource;
            dataGridViewCellStyle35.Alignment = Gizmox.WebGUI.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Window;
            dataGridViewCellStyle35.Font = new System.Drawing.Font("Tahoma", 8.25F);
            dataGridViewCellStyle35.ForeColor = System.Drawing.Color.Black;
            dataGridViewCellStyle35.FormatProvider = new System.Globalization.CultureInfo("en-US");
            dataGridViewCellStyle35.SelectionBackColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle35.SelectionForeColor = System.Drawing.Color.Black;
            dataGridViewCellStyle35.WrapMode = Gizmox.WebGUI.Forms.DataGridViewTriState.False;
            this.dgvDataSource.DefaultCellStyle = dataGridViewCellStyle35;
            this.dgvDataSource.Location = new System.Drawing.Point(0, 143);
            this.dgvDataSource.Name = "virtualDataGridView1";
            this.dgvDataSource.RowHeadersWidth = 20;
            this.dgvDataSource.RowTemplate.Height = 18;
            this.dgvDataSource.Size = new System.Drawing.Size(372, 273);
            this.dgvDataSource.TabIndex = 0;
            // 
            // dataGridViewTextBoxColumn1
            // 
            this.dataGridViewTextBoxColumn1.DataPropertyName = "AUTO_ID";
            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle26;
            this.dataGridViewTextBoxColumn1.HeaderText = "AUTO_ID";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.Visible = false;
            // 
            // dataGridViewTextBoxColumn2
            // 
            this.dataGridViewTextBoxColumn2.DataPropertyName = "Code";
            this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle27;
            this.dataGridViewTextBoxColumn2.HeaderText = "Code";
            this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.Visible = false;
            // 
            // colFieldName
            // 
            this.colFieldName.AutoComplete = false;
            this.colFieldName.DataPropertyName = "FieldName";
            this.colFieldName.DefaultCellStyle = dataGridViewCellStyle28;
            this.colFieldName.DisplayStyleForCurrentCellOnly = true;
            this.colFieldName.HeaderText = "Field Name";
            this.colFieldName.Name = "colFieldName";
            // 
            // dataGridViewTextBoxColumn4
            // 
            this.dataGridViewTextBoxColumn4.DataPropertyName = "SourceName";
            this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle29;
            this.dataGridViewTextBoxColumn4.HeaderText = "SourceName";
            this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.Visible = false;
            // 
            // dataGridViewTextBoxColumn5
            // 
            this.dataGridViewTextBoxColumn5.DataPropertyName = "START";
            this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle30;
            this.dataGridViewTextBoxColumn5.HeaderText = "START";
            this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn5.Width = 70;
            // 
            // dataGridViewTextBoxColumn6
            // 
            this.dataGridViewTextBoxColumn6.DataPropertyName = "LENGTH";
            this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle31;
            this.dataGridViewTextBoxColumn6.HeaderText = "LENGTH";
            this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
            this.dataGridViewTextBoxColumn6.Width = 70;
            // 
            // dataGridViewComboBoxColumn1
            // 
            this.dataGridViewComboBoxColumn1.AutoComplete = false;
            this.dataGridViewComboBoxColumn1.DataPropertyName = "OPERATOR";
            this.dataGridViewComboBoxColumn1.DefaultCellStyle = dataGridViewCellStyle32;
            this.dataGridViewComboBoxColumn1.DisplayStyleForCurrentCellOnly = true;
            this.dataGridViewComboBoxColumn1.HeaderText = "OPERATOR";
            this.dataGridViewComboBoxColumn1.Items.AddRange(new object[] {
            "=",
            "<>",
            ">",
            "<",
            "<=",
            ">=",
            "Between",
            "Not Between",
            "In",
            "Not In",
            "Like",
            "Not Like"});
            this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1";
            // 
            // dataGridViewTextBoxColumn34
            // 
            this.dataGridViewTextBoxColumn34.DataPropertyName = "VALUEF";
            this.dataGridViewTextBoxColumn34.DefaultCellStyle = dataGridViewCellStyle33;
            this.dataGridViewTextBoxColumn34.HeaderText = "FROM";
            this.dataGridViewTextBoxColumn34.Name = "dataGridViewTextBoxColumn34";
            this.dataGridViewTextBoxColumn34.Width = 150;
            // 
            // dataGridViewTextBoxColumn35
            // 
            this.dataGridViewTextBoxColumn35.DataPropertyName = "VALUET";
            this.dataGridViewTextBoxColumn35.DefaultCellStyle = dataGridViewCellStyle34;
            this.dataGridViewTextBoxColumn35.HeaderText = "TO";
            this.dataGridViewTextBoxColumn35.Name = "dataGridViewTextBoxColumn35";
            this.dataGridViewTextBoxColumn35.Width = 150;
            // 
            // bisSource
            // 
            this.bisSource.DataSource = typeof(DTO.TVC_MVPDETInfo);
            // 
            // expandableGroupBox1
            // 
            this.expandableGroupBox1.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)(((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Left) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Right)));
            this.expandableGroupBox1.Controls.Add(this.ckbBudgetAC);
            this.expandableGroupBox1.Controls.Add(this.ckbBudget);
            this.expandableGroupBox1.Controls.Add(this.chkDelivery);
            this.expandableGroupBox1.Controls.Add(this.chkDepartment);
            this.expandableGroupBox1.Controls.Add(this.chkShipdate);
            this.expandableGroupBox1.Controls.Add(this.chkWell);
            this.expandableGroupBox1.Controls.Add(this.chkShipBy);
            this.expandableGroupBox1.Controls.Add(this.chkFrom);
            this.expandableGroupBox1.Controls.Add(this.chkSupplier);
            this.expandableGroupBox1.Controls.Add(this.chkPI);
            this.expandableGroupBox1.Controls.Add(this.chkPO);
            this.expandableGroupBox1.Controls.Add(this.chkBL);
            this.expandableGroupBox1.Controls.Add(this.chkTo);
            this.expandableGroupBox1.CustomStyle = "X";
            this.expandableGroupBox1.FlatStyle = Gizmox.WebGUI.Forms.FlatStyle.Flat;
            this.expandableGroupBox1.Location = new System.Drawing.Point(0, 0);
            this.expandableGroupBox1.Name = "expandableGroupBox1";
            this.expandableGroupBox1.Size = new System.Drawing.Size(372, 143);
            this.expandableGroupBox1.TabIndex = 24;
            this.expandableGroupBox1.Text = "Show/Hide Header";
            // 
            // ckbBudgetAC
            // 
            this.ckbBudgetAC.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.ckbBudgetAC.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.ckbBudgetAC.Location = new System.Drawing.Point(33, 122);
            this.ckbBudgetAC.Name = "ckbBudgetAC";
            this.ckbBudgetAC.Size = new System.Drawing.Size(81, 17);
            this.ckbBudgetAC.TabIndex = 7;
            this.ckbBudgetAC.Text = "Budget A/C";
            this.ckbBudgetAC.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // ckbBudget
            // 
            this.ckbBudget.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.ckbBudget.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.ckbBudget.Location = new System.Drawing.Point(286, 97);
            this.ckbBudget.Name = "ckbBudget";
            this.ckbBudget.Size = new System.Drawing.Size(60, 17);
            this.ckbBudget.TabIndex = 7;
            this.ckbBudget.Text = "Budget";
            this.ckbBudget.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkDelivery
            // 
            this.chkDelivery.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkDelivery.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkDelivery.Location = new System.Drawing.Point(133, 72);
            this.chkDelivery.Name = "chkDelivery";
            this.chkDelivery.Size = new System.Drawing.Size(132, 17);
            this.chkDelivery.TabIndex = 10;
            this.chkDelivery.Text = "Delivery/Receipt Point";
            this.chkDelivery.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkDepartment
            // 
            this.chkDepartment.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkDepartment.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkDepartment.Location = new System.Drawing.Point(31, 72);
            this.chkDepartment.Name = "chkDepartment";
            this.chkDepartment.Size = new System.Drawing.Size(83, 17);
            this.chkDepartment.TabIndex = 4;
            this.chkDepartment.Text = "Department";
            // 
            // chkShipdate
            // 
            this.chkShipdate.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkShipdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkShipdate.Location = new System.Drawing.Point(18, 22);
            this.chkShipdate.Name = "chkShipdate";
            this.chkShipdate.Size = new System.Drawing.Size(96, 17);
            this.chkShipdate.TabIndex = 0;
            this.chkShipdate.Text = "Shipment Date";
            this.chkShipdate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkWell
            // 
            this.chkWell.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkWell.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkWell.Location = new System.Drawing.Point(42, 97);
            this.chkWell.Name = "chkWell";
            this.chkWell.Size = new System.Drawing.Size(72, 17);
            this.chkWell.TabIndex = 3;
            this.chkWell.Text = "Well code";
            // 
            // chkShipBy
            // 
            this.chkShipBy.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkShipBy.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkShipBy.Location = new System.Drawing.Point(29, 47);
            this.chkShipBy.Name = "chkShipBy";
            this.chkShipBy.Size = new System.Drawing.Size(85, 17);
            this.chkShipBy.TabIndex = 6;
            this.chkShipBy.Text = "Shipment By";
            this.chkShipBy.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkFrom
            // 
            this.chkFrom.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkFrom.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkFrom.Location = new System.Drawing.Point(296, 22);
            this.chkFrom.Name = "chkFrom";
            this.chkFrom.Size = new System.Drawing.Size(50, 17);
            this.chkFrom.TabIndex = 2;
            this.chkFrom.Text = "From";
            this.chkFrom.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkSupplier
            // 
            this.chkSupplier.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkSupplier.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkSupplier.Location = new System.Drawing.Point(201, 97);
            this.chkSupplier.Name = "chkSupplier";
            this.chkSupplier.Size = new System.Drawing.Size(64, 17);
            this.chkSupplier.TabIndex = 9;
            this.chkSupplier.Text = "Supplier";
            // 
            // chkPI
            // 
            this.chkPI.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkPI.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkPI.Location = new System.Drawing.Point(290, 72);
            this.chkPI.Name = "chkPI";
            this.chkPI.Size = new System.Drawing.Size(56, 17);
            this.chkPI.TabIndex = 7;
            this.chkPI.Text = "PI No.";
            this.chkPI.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkPO
            // 
            this.chkPO.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkPO.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkPO.Location = new System.Drawing.Point(161, 47);
            this.chkPO.Name = "chkPO";
            this.chkPO.Size = new System.Drawing.Size(104, 17);
            this.chkPO.TabIndex = 5;
            this.chkPO.Text = "PO/SO/Contract";
            // 
            // chkBL
            // 
            this.chkBL.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkBL.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkBL.Location = new System.Drawing.Point(156, 22);
            this.chkBL.Name = "chkBL";
            this.chkBL.Size = new System.Drawing.Size(109, 17);
            this.chkBL.TabIndex = 1;
            this.chkBL.Text = "BL/ AWB/ CM/ DT";
            this.chkBL.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // chkTo
            // 
            this.chkTo.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkTo.Location = new System.Drawing.Point(308, 47);
            this.chkTo.Name = "chkTo";
            this.chkTo.Size = new System.Drawing.Size(38, 17);
            this.chkTo.TabIndex = 8;
            this.chkTo.Text = "To";
            // 
            // pnDetail
            // 
            this.pnDetail.Anchor = ((Gizmox.WebGUI.Forms.AnchorStyles)(((Gizmox.WebGUI.Forms.AnchorStyles.Top | Gizmox.WebGUI.Forms.AnchorStyles.Bottom) 
            | Gizmox.WebGUI.Forms.AnchorStyles.Left)));
            this.pnDetail.Controls.Add(this.label62);
            this.pnDetail.Controls.Add(this.label61);
            this.pnDetail.Controls.Add(this.cboBudgetAC);
            this.pnDetail.Controls.Add(this.cboBudget);
            this.pnDetail.Controls.Add(this.label37);
            this.pnDetail.Controls.Add(this.mcbSupplier);
            this.pnDetail.Controls.Add(this.mcbItemCode);
            this.pnDetail.Controls.Add(this.picItemCode);
            this.pnDetail.Controls.Add(this.picSupplier);
            this.pnDetail.Controls.Add(this.label26);
            this.pnDetail.Controls.Add(this.cboLocaltion);
            this.pnDetail.Controls.Add(this.txtPurpose);
            this.pnDetail.Controls.Add(this.lbUserName);
            this.pnDetail.Controls.Add(this.txtReferences);
            this.pnDetail.Controls.Add(this.cboItemCode);
            this.pnDetail.Controls.Add(this.cboTo);
            this.pnDetail.Controls.Add(this.txtlblSupplier);
            this.pnDetail.Controls.Add(this.label32);
            this.pnDetail.Controls.Add(this.txtDescription1);
            this.pnDetail.Controls.Add(this.txtDelivery);
            this.pnDetail.Controls.Add(this.txtCode);
            this.pnDetail.Controls.Add(this.label5);
            this.pnDetail.Controls.Add(this.label29);
            this.pnDetail.Controls.Add(this.label4);
            this.pnDetail.Controls.Add(this.label28);
            this.pnDetail.Controls.Add(this.cboWellCode);
            this.pnDetail.Controls.Add(this.label33);
            this.pnDetail.Controls.Add(this.txtDescription);
            this.pnDetail.Controls.Add(this.label6);
            this.pnDetail.Controls.Add(this.cboDepartment);
            this.pnDetail.Controls.Add(this.txtSort);
            this.pnDetail.Controls.Add(this.chkSuppend);
            this.pnDetail.Controls.Add(this.txtFrequency);
            this.pnDetail.Controls.Add(this.label30);
            this.pnDetail.Controls.Add(this.label34);
            this.pnDetail.Controls.Add(this.lblDescription);
            this.pnDetail.Controls.Add(this.cboStatus);
            this.pnDetail.Controls.Add(this.label25);
            this.pnDetail.Controls.Add(this.label3);
            this.pnDetail.Controls.Add(this.txtReceived);
            this.pnDetail.Controls.Add(this.txtAmount);
            this.pnDetail.Controls.Add(this.cboSupplier);
            this.pnDetail.Controls.Add(this.txtVision);
            this.pnDetail.Controls.Add(this.txtLookup);
            this.pnDetail.Controls.Add(this.label27);
            this.pnDetail.Controls.Add(this.cboAccountCode);
            this.pnDetail.Controls.Add(this.label2);
            this.pnDetail.Controls.Add(this.label36);
            this.pnDetail.Controls.Add(this.label23);
            this.pnDetail.Controls.Add(this.label31);
            this.pnDetail.Controls.Add(this.label35);
            this.pnDetail.Controls.Add(this.txtMark);
            this.pnDetail.Controls.Add(this.label24);
            this.pnDetail.Controls.Add(this.cboPO);
            this.pnDetail.Controls.Add(this.label1);
            this.pnDetail.Controls.Add(this.txtPrefix);
            this.pnDetail.Controls.Add(this.lbl);
            this.pnDetail.Location = new System.Drawing.Point(0, 0);
            this.pnDetail.Name = "pnDetail";
            this.pnDetail.Size = new System.Drawing.Size(668, 416);
            this.pnDetail.TabIndex = 25;
            // 
            // label62
            // 
            this.label62.AutoSize = true;
            this.label62.Location = new System.Drawing.Point(353, 368);
            this.label62.Name = "label62";
            this.label62.Size = new System.Drawing.Size(41, 13);
            this.label62.TabIndex = 104;
            this.label62.Text = "Budget A/C";
            // 
            // label61
            // 
            this.label61.AutoSize = true;
            this.label61.Location = new System.Drawing.Point(29, 369);
            this.label61.Name = "label61";
            this.label61.Size = new System.Drawing.Size(41, 13);
            this.label61.TabIndex = 103;
            this.label61.Text = "Budget";
            // 
            // cboBudgetAC
            // 
            this.cboBudgetAC.AllowDrag = false;
            this.cboBudgetAC.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboBudgetAC.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboBudgetAC.FormattingEnabled = true;
            this.cboBudgetAC.Location = new System.Drawing.Point(444, 363);
            this.cboBudgetAC.Name = "cboBudgetAC";
            this.cboBudgetAC.Size = new System.Drawing.Size(139, 22);
            this.cboBudgetAC.TabIndex = 25;
            // 
            // cboBudget
            // 
            this.cboBudget.AllowDrag = false;
            this.cboBudget.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboBudget.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboBudget.FormattingEnabled = true;
            this.cboBudget.Location = new System.Drawing.Point(133, 363);
            this.cboBudget.Name = "cboBudget";
            this.cboBudget.Size = new System.Drawing.Size(194, 22);
            this.cboBudget.TabIndex = 13;
            // 
            // label37
            // 
            this.label37.AutoSize = true;
            this.label37.Location = new System.Drawing.Point(353, 344);
            this.label37.Name = "label37";
            this.label37.Size = new System.Drawing.Size(81, 13);
            this.label37.TabIndex = 0;
            this.label37.Text = "lblSupplier";
            // 
            // mcbSupplier
            // 
            this.mcbSupplier.AllowDrag = false;
            this.mcbSupplier.AutoScroll = false;
            this.mcbSupplier.AutoValidate = Gizmox.WebGUI.Forms.AutoValidate.Disable;
            this.mcbSupplier.Binding = null;
            this.mcbSupplier.DisplayField = null;
            this.mcbSupplier.DisplayRows = 0;
            this.mcbSupplier.Filter = false;
            this.mcbSupplier.KeyPressChk = false;
            this.mcbSupplier.Layout = null;
            this.mcbSupplier.Location = new System.Drawing.Point(327, 339);
            this.mcbSupplier.Lookup = null;
            this.mcbSupplier.MainForm = null;
            this.mcbSupplier.Name = "mcbSupplier";
            this.mcbSupplier.RowData = null;
            this.mcbSupplier.RowDatas = null;
            this.mcbSupplier.Size = new System.Drawing.Size(22, 21);
            this.mcbSupplier.TabIndex = 101;
            this.mcbSupplier.Value = "";
            this.mcbSupplier.ValueField = null;
            this.mcbSupplier.Visible = false;
            this.mcbSupplier.ComboText_Changed += new TVC.Modules.CustomControl.MultiColumnCombo.ComboChanged(this.mcbSupplier_ComboText_Changed);
            // 
            // mcbItemCode
            // 
            this.mcbItemCode.AllowDrag = false;
            this.mcbItemCode.AutoScroll = false;
            this.mcbItemCode.AutoValidate = Gizmox.WebGUI.Forms.AutoValidate.Disable;
            this.mcbItemCode.Binding = null;
            this.mcbItemCode.DisplayField = null;
            this.mcbItemCode.DisplayRows = 0;
            this.mcbItemCode.Filter = false;
            this.mcbItemCode.KeyPressChk = false;
            this.mcbItemCode.Layout = null;
            this.mcbItemCode.Location = new System.Drawing.Point(326, 189);
            this.mcbItemCode.Lookup = null;
            this.mcbItemCode.MainForm = null;
            this.mcbItemCode.Name = "mcbItemCode";
            this.mcbItemCode.RowData = null;
            this.mcbItemCode.RowDatas = null;
            this.mcbItemCode.Size = new System.Drawing.Size(22, 21);
            this.mcbItemCode.TabIndex = 101;
            this.mcbItemCode.Value = "";
            this.mcbItemCode.ValueField = null;
            this.mcbItemCode.Visible = false;
            this.mcbItemCode.ComboText_Changed += new TVC.Modules.CustomControl.MultiColumnCombo.ComboChanged(this.mcbItemCode_ComboText_Changed);
            // 
            // picItemCode
            // 
            this.picItemCode.BackColor = System.Drawing.Color.Gainsboro;
            this.picItemCode.BackgroundImage = new Gizmox.WebGUI.Common.Resources.IconResourceHandle(resources.GetString("picItemCode.BackgroundImage"));
            this.picItemCode.BackgroundImageLayout = Gizmox.WebGUI.Forms.ImageLayout.Stretch;
            this.picItemCode.Cursor = Gizmox.WebGUI.Forms.Cursors.Hand;
            this.picItemCode.Location = new System.Drawing.Point(307, 189);
            this.picItemCode.Name = "picItemCode";
            this.picItemCode.Size = new System.Drawing.Size(20, 21);
            this.picItemCode.TabIndex = 102;
            this.picItemCode.TabStop = false;
            this.picItemCode.Click += new System.EventHandler(this.picItemCode_Click);
            // 
            // picSupplier
            // 
            this.picSupplier.BackColor = System.Drawing.Color.Gainsboro;
            this.picSupplier.BackgroundImage = new Gizmox.WebGUI.Common.Resources.IconResourceHandle(resources.GetString("picSupplier.BackgroundImage"));
            this.picSupplier.BackgroundImageLayout = Gizmox.WebGUI.Forms.ImageLayout.Stretch;
            this.picSupplier.Cursor = Gizmox.WebGUI.Forms.Cursors.Hand;
            this.picSupplier.Location = new System.Drawing.Point(307, 339);
            this.picSupplier.Name = "picSupplier";
            this.picSupplier.Size = new System.Drawing.Size(20, 21);
            this.picSupplier.TabIndex = 102;
            this.picSupplier.TabStop = false;
            this.picSupplier.Click += new System.EventHandler(this.picSupplier_Click);
            // 
            // label26
            // 
            this.label26.AutoSize = true;
            this.label26.Location = new System.Drawing.Point(29, 293);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(64, 13);
            this.label26.TabIndex = 0;
            this.label26.Text = "Localtion";
            // 
            // cboLocaltion
            // 
            this.cboLocaltion.AllowDrag = false;
            this.cboLocaltion.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboLocaltion.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboLocaltion.FormattingEnabled = true;
            this.cboLocaltion.Location = new System.Drawing.Point(133, 288);
            this.cboLocaltion.Name = "cboLocaltion";
            this.cboLocaltion.Size = new System.Drawing.Size(139, 22);
            this.cboLocaltion.TabIndex = 10;
            // 
            // txtPurpose
            // 
            this.txtPurpose.AllowDrag = false;
            this.txtPurpose.Location = new System.Drawing.Point(444, 83);
            this.txtPurpose.Multiline = true;
            this.txtPurpose.Name = "txtPurpose";
            this.txtPurpose.Size = new System.Drawing.Size(211, 54);
            this.txtPurpose.TabIndex = 17;
            // 
            // lbUserName
            // 
            this.lbUserName.AutoSize = true;
            this.lbUserName.Location = new System.Drawing.Point(29, 15);
            this.lbUserName.Name = "lbUserName";
            this.lbUserName.Size = new System.Drawing.Size(32, 13);
            this.lbUserName.TabIndex = 0;
            this.lbUserName.Text = "Code";
            // 
            // txtReferences
            // 
            this.txtReferences.AllowDrag = false;
            this.txtReferences.Location = new System.Drawing.Point(444, 189);
            this.txtReferences.Multiline = true;
            this.txtReferences.Name = "txtReferences";
            this.txtReferences.Size = new System.Drawing.Size(211, 47);
            this.txtReferences.TabIndex = 19;
            // 
            // cboItemCode
            // 
            this.cboItemCode.AllowDrag = false;
            this.cboItemCode.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboItemCode.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboItemCode.FormattingEnabled = true;
            this.cboItemCode.Location = new System.Drawing.Point(133, 189);
            this.cboItemCode.Name = "cboItemCode";
            this.cboItemCode.Size = new System.Drawing.Size(194, 22);
            this.cboItemCode.TabIndex = 6;
            this.cboItemCode.SelectedValueChanged += new System.EventHandler(this.cboItemCode_SelectedValueChanged);
            // 
            // cboTo
            // 
            this.cboTo.AllowDrag = false;
            this.cboTo.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboTo.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboTo.FormattingEnabled = true;
            this.cboTo.Location = new System.Drawing.Point(133, 164);
            this.cboTo.Name = "cboTo";
            this.cboTo.Size = new System.Drawing.Size(139, 22);
            this.cboTo.TabIndex = 5;
            // 
            // txtlblSupplier
            // 
            this.txtlblSupplier.AllowDrag = false;
            this.txtlblSupplier.Location = new System.Drawing.Point(444, 338);
            this.txtlblSupplier.MaxLength = 15;
            this.txtlblSupplier.Name = "txtlblSupplier";
            this.txtlblSupplier.Size = new System.Drawing.Size(114, 21);
            this.txtlblSupplier.TabIndex = 24;
            // 
            // label32
            // 
            this.label32.AutoSize = true;
            this.label32.Location = new System.Drawing.Point(353, 194);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(62, 13);
            this.label32.TabIndex = 0;
            this.label32.Text = "References";
            // 
            // txtDescription1
            // 
            this.txtDescription1.AllowDrag = false;
            this.txtDescription1.Location = new System.Drawing.Point(444, 35);
            this.txtDescription1.Multiline = true;
            this.txtDescription1.Name = "txtDescription1";
            this.txtDescription1.Size = new System.Drawing.Size(211, 45);
            this.txtDescription1.TabIndex = 16;
            // 
            // txtDelivery
            // 
            this.txtDelivery.AllowDrag = false;
            this.txtDelivery.Location = new System.Drawing.Point(444, 239);
            this.txtDelivery.MaxLength = 15;
            this.txtDelivery.Name = "txtDelivery";
            this.txtDelivery.Size = new System.Drawing.Size(211, 21);
            this.txtDelivery.TabIndex = 20;
            // 
            // txtCode
            // 
            this.txtCode.AllowDrag = false;
            this.txtCode.Location = new System.Drawing.Point(133, 11);
            this.txtCode.MaxLength = 15;
            this.txtCode.Name = "txtCode";
            this.txtCode.Size = new System.Drawing.Size(103, 21);
            this.txtCode.TabIndex = 0;
            // 
            // label5
            // 
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(29, 194);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(57, 13);
            this.label5.TabIndex = 0;
            this.label5.Text = "Item Code";
            // 
            // label29
            // 
            this.label29.AutoSize = true;
            this.label29.Location = new System.Drawing.Point(29, 394);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(55, 13);
            this.label29.TabIndex = 0;
            this.label29.Text = "Well Code";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(29, 169);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(19, 13);
            this.label4.TabIndex = 0;
            this.label4.Text = "To";
            // 
            // label28
            // 
            this.label28.AutoSize = true;
            this.label28.Location = new System.Drawing.Point(353, 144);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(58, 13);
            this.label28.TabIndex = 0;
            this.label28.Text = "Frequency";
            // 
            // cboWellCode
            // 
            this.cboWellCode.AllowDrag = false;
            this.cboWellCode.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboWellCode.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboWellCode.FormattingEnabled = true;
            this.cboWellCode.Location = new System.Drawing.Point(133, 388);
            this.cboWellCode.Name = "cboWellCode";
            this.cboWellCode.Size = new System.Drawing.Size(139, 22);
            this.cboWellCode.TabIndex = 14;
            // 
            // label33
            // 
            this.label33.AutoSize = true;
            this.label33.Location = new System.Drawing.Point(353, 243);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(73, 13);
            this.label33.TabIndex = 0;
            this.label33.Text = "Delivery Point";
            // 
            // txtDescription
            // 
            this.txtDescription.AllowDrag = false;
            this.txtDescription.Location = new System.Drawing.Point(133, 83);
            this.txtDescription.Multiline = true;
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Size = new System.Drawing.Size(194, 54);
            this.txtDescription.TabIndex = 3;
            // 
            // label6
            // 
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(29, 219);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(38, 13);
            this.label6.TabIndex = 0;
            this.label6.Text = "Status";
            // 
            // cboDepartment
            // 
            this.cboDepartment.AllowDrag = false;
            this.cboDepartment.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboDepartment.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboDepartment.FormattingEnabled = true;
            this.cboDepartment.Location = new System.Drawing.Point(444, 11);
            this.cboDepartment.Name = "cboDepartment";
            this.cboDepartment.Size = new System.Drawing.Size(139, 22);
            this.cboDepartment.TabIndex = 15;
            // 
            // txtSort
            // 
            this.txtSort.AllowDrag = false;
            this.txtSort.Location = new System.Drawing.Point(133, 140);
            this.txtSort.MaxLength = 15;
            this.txtSort.Name = "txtSort";
            this.txtSort.Size = new System.Drawing.Size(103, 21);
            this.txtSort.TabIndex = 4;
            // 
            // chkSuppend
            // 
            this.chkSuppend.AutoSize = true;
            this.chkSuppend.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.chkSuppend.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.chkSuppend.Location = new System.Drawing.Point(353, 391);
            this.chkSuppend.Name = "chkSuppend";
            this.chkSuppend.Size = new System.Drawing.Size(107, 17);
            this.chkSuppend.TabIndex = 26;
            this.chkSuppend.Text = "Suppend             ";
            this.chkSuppend.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            // 
            // txtFrequency
            // 
            this.txtFrequency.AllowDrag = false;
            this.txtFrequency.Location = new System.Drawing.Point(444, 140);
            this.txtFrequency.Multiline = true;
            this.txtFrequency.Name = "txtFrequency";
            this.txtFrequency.Size = new System.Drawing.Size(211, 46);
            this.txtFrequency.TabIndex = 18;
            // 
            // label30
            // 
            this.label30.AutoSize = true;
            this.label30.Location = new System.Drawing.Point(353, 15);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(64, 13);
            this.label30.TabIndex = 0;
            this.label30.Text = "Department";
            // 
            // label34
            // 
            this.label34.AutoSize = true;
            this.label34.Location = new System.Drawing.Point(353, 293);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(35, 13);
            this.label34.TabIndex = 0;
            this.label34.Text = "Prefix";
            // 
            // lblDescription
            // 
            this.lblDescription.AutoSize = true;
            this.lblDescription.Location = new System.Drawing.Point(29, 39);
            this.lblDescription.Name = "lblDescription";
            this.lblDescription.Size = new System.Drawing.Size(41, 13);
            this.lblDescription.TabIndex = 0;
            this.lblDescription.Text = "Lookup";
            // 
            // cboStatus
            // 
            this.cboStatus.AllowDrag = false;
            this.cboStatus.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboStatus.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboStatus.FormattingEnabled = true;
            this.cboStatus.Location = new System.Drawing.Point(133, 214);
            this.cboStatus.Name = "cboStatus";
            this.cboStatus.Size = new System.Drawing.Size(139, 22);
            this.cboStatus.TabIndex = 7;
            // 
            // label25
            // 
            this.label25.AutoSize = true;
            this.label25.Location = new System.Drawing.Point(29, 318);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(74, 13);
            this.label25.TabIndex = 0;
            this.label25.Text = "Account Code";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(29, 144);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(58, 13);
            this.label3.TabIndex = 0;
            this.label3.Text = "Sort Order";
            // 
            // txtReceived
            // 
            this.txtReceived.AllowDrag = false;
            this.txtReceived.Location = new System.Drawing.Point(444, 263);
            this.txtReceived.MaxLength = 15;
            this.txtReceived.Name = "txtReceived";
            this.txtReceived.Size = new System.Drawing.Size(211, 21);
            this.txtReceived.TabIndex = 21;
            // 
            // txtAmount
            // 
            this.txtAmount.AllowDrag = false;
            this.txtAmount.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtAmount.Location = new System.Drawing.Point(133, 239);
            this.txtAmount.Name = "cboAmount";
            this.txtAmount.Size = new System.Drawing.Size(139, 21);
            this.txtAmount.TabIndex = 8;
            // 
            // cboSupplier
            // 
            this.cboSupplier.AllowDrag = false;
            this.cboSupplier.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboSupplier.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboSupplier.FormattingEnabled = true;
            this.cboSupplier.Location = new System.Drawing.Point(133, 338);
            this.cboSupplier.Name = "cboSupplier";
            this.cboSupplier.Size = new System.Drawing.Size(194, 22);
            this.cboSupplier.TabIndex = 12;
            this.cboSupplier.SelectedValueChanged += new System.EventHandler(this.cboSupplier_SelectedValueChanged);
            // 
            // txtVision
            // 
            this.txtVision.AllowDrag = false;
            this.txtVision.Location = new System.Drawing.Point(444, 313);
            this.txtVision.MaxLength = 15;
            this.txtVision.Name = "txtVision";
            this.txtVision.Size = new System.Drawing.Size(114, 21);
            this.txtVision.TabIndex = 23;
            // 
            // txtLookup
            // 
            this.txtLookup.AllowDrag = false;
            this.txtLookup.Location = new System.Drawing.Point(133, 35);
            this.txtLookup.MaxLength = 15;
            this.txtLookup.Name = "txtLookup";
            this.txtLookup.Size = new System.Drawing.Size(103, 21);
            this.txtLookup.TabIndex = 1;
            // 
            // label27
            // 
            this.label27.AutoSize = true;
            this.label27.Location = new System.Drawing.Point(353, 86);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(46, 13);
            this.label27.TabIndex = 0;
            this.label27.Text = "Purpose";
            // 
            // cboAccountCode
            // 
            this.cboAccountCode.AllowDrag = false;
            this.cboAccountCode.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboAccountCode.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboAccountCode.FormattingEnabled = true;
            this.cboAccountCode.Location = new System.Drawing.Point(133, 313);
            this.cboAccountCode.Name = "cboAccountCode";
            this.cboAccountCode.Size = new System.Drawing.Size(139, 22);
            this.cboAccountCode.TabIndex = 11;
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(29, 86);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(60, 13);
            this.label2.TabIndex = 0;
            this.label2.Text = "Description";
            // 
            // label36
            // 
            this.label36.AutoSize = true;
            this.label36.Location = new System.Drawing.Point(353, 268);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(102, 13);
            this.label36.TabIndex = 0;
            this.label36.Text = "Received/Issued ";
            // 
            // label23
            // 
            this.label23.AutoSize = true;
            this.label23.Location = new System.Drawing.Point(29, 243);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(44, 13);
            this.label23.TabIndex = 0;
            this.label23.Text = "Amount";
            // 
            // label31
            // 
            this.label31.AutoSize = true;
            this.label31.Location = new System.Drawing.Point(29, 344);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(45, 13);
            this.label31.TabIndex = 0;
            this.label31.Text = "Supplier";
            // 
            // label35
            // 
            this.label35.AutoSize = true;
            this.label35.Location = new System.Drawing.Point(353, 318);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(81, 13);
            this.label35.TabIndex = 0;
            this.label35.Text = "Vision Template";
            // 
            // txtMark
            // 
            this.txtMark.AllowDrag = false;
            this.txtMark.Location = new System.Drawing.Point(133, 59);
            this.txtMark.MaxLength = 15;
            this.txtMark.Name = "txtMark";
            this.txtMark.Size = new System.Drawing.Size(103, 21);
            this.txtMark.TabIndex = 2;
            // 
            // label24
            // 
            this.label24.AutoSize = true;
            this.label24.Location = new System.Drawing.Point(29, 268);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(85, 13);
            this.label24.TabIndex = 0;
            this.label24.Text = "PO/SO/Contract";
            // 
            // cboPO
            // 
            this.cboPO.AllowDrag = false;
            this.cboPO.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.cboPO.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboPO.FormattingEnabled = true;
            this.cboPO.Location = new System.Drawing.Point(133, 263);
            this.cboPO.Name = "cboPO";
            this.cboPO.Size = new System.Drawing.Size(139, 22);
            this.cboPO.TabIndex = 9;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(29, 63);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(57, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Mark (+/-)";
            // 
            // txtPrefix
            // 
            this.txtPrefix.AllowDrag = false;
            this.txtPrefix.Location = new System.Drawing.Point(444, 288);
            this.txtPrefix.MaxLength = 15;
            this.txtPrefix.Name = "txtPrefix";
            this.txtPrefix.Size = new System.Drawing.Size(114, 21);
            this.txtPrefix.TabIndex = 22;
            // 
            // lbl
            // 
            this.lbl.AutoSize = true;
            this.lbl.Location = new System.Drawing.Point(353, 39);
            this.lbl.Name = "lbl";
            this.lbl.Size = new System.Drawing.Size(69, 13);
            this.lbl.TabIndex = 0;
            this.lbl.Text = "Description 1";
            // 
            // menuItem1
            // 
            this.menuItem1.Index = -1;
            // 
            // comboBox3
            // 
            this.comboBox3.AllowDrag = false;
            this.comboBox3.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox3.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox3.FormattingEnabled = true;
            this.comboBox3.Location = new System.Drawing.Point(115, 229);
            this.comboBox3.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox3.Name = "comboBox3";
            this.comboBox3.Size = new System.Drawing.Size(116, 20);
            this.comboBox3.TabIndex = 5;
            // 
            // label7
            // 
            this.label7.AutoSize = true;
            this.label7.Location = new System.Drawing.Point(20, 232);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(60, 13);
            this.label7.TabIndex = 0;
            this.label7.Text = "Status";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Location = new System.Drawing.Point(20, 205);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(60, 13);
            this.label8.TabIndex = 0;
            this.label8.Text = "Item Code";
            // 
            // comboBox4
            // 
            this.comboBox4.AllowDrag = false;
            this.comboBox4.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox4.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox4.FormattingEnabled = true;
            this.comboBox4.Location = new System.Drawing.Point(115, 202);
            this.comboBox4.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox4.Name = "comboBox4";
            this.comboBox4.Size = new System.Drawing.Size(116, 20);
            this.comboBox4.TabIndex = 5;
            // 
            // comboBox5
            // 
            this.comboBox5.AllowDrag = false;
            this.comboBox5.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox5.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox5.FormattingEnabled = true;
            this.comboBox5.Location = new System.Drawing.Point(115, 174);
            this.comboBox5.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox5.Name = "comboBox5";
            this.comboBox5.Size = new System.Drawing.Size(116, 20);
            this.comboBox5.TabIndex = 5;
            // 
            // label9
            // 
            this.label9.AutoSize = true;
            this.label9.Location = new System.Drawing.Point(20, 177);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(60, 13);
            this.label9.TabIndex = 0;
            this.label9.Text = "To";
            // 
            // textBox4
            // 
            this.textBox4.AllowDrag = false;
            this.textBox4.Location = new System.Drawing.Point(115, 148);
            this.textBox4.MaxLength = 15;
            this.textBox4.Name = "textBox4";
            this.textBox4.Size = new System.Drawing.Size(116, 20);
            this.textBox4.TabIndex = 0;
            // 
            // label10
            // 
            this.label10.AutoSize = true;
            this.label10.Location = new System.Drawing.Point(20, 151);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(60, 13);
            this.label10.TabIndex = 0;
            this.label10.Text = "Sort Order";
            // 
            // label11
            // 
            this.label11.AutoSize = true;
            this.label11.Location = new System.Drawing.Point(20, 93);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(60, 13);
            this.label11.TabIndex = 0;
            this.label11.Text = "Description";
            // 
            // label12
            // 
            this.label12.AutoSize = true;
            this.label12.Location = new System.Drawing.Point(20, 67);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(60, 13);
            this.label12.TabIndex = 0;
            this.label12.Text = "Mark (+/-)";
            // 
            // textBox5
            // 
            this.textBox5.AllowDrag = false;
            this.textBox5.Location = new System.Drawing.Point(115, 64);
            this.textBox5.MaxLength = 15;
            this.textBox5.Name = "textBox5";
            this.textBox5.Size = new System.Drawing.Size(116, 20);
            this.textBox5.TabIndex = 0;
            // 
            // textBox6
            // 
            this.textBox6.AllowDrag = false;
            this.textBox6.Location = new System.Drawing.Point(115, 38);
            this.textBox6.MaxLength = 15;
            this.textBox6.Name = "textBox6";
            this.textBox6.Size = new System.Drawing.Size(116, 20);
            this.textBox6.TabIndex = 0;
            // 
            // label13
            // 
            this.label13.AutoSize = true;
            this.label13.Location = new System.Drawing.Point(20, 45);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(60, 13);
            this.label13.TabIndex = 0;
            this.label13.Text = "Lookup";
            // 
            // textBox7
            // 
            this.textBox7.AllowDrag = false;
            this.textBox7.Location = new System.Drawing.Point(115, 90);
            this.textBox7.Name = "textBox7";
            this.textBox7.Size = new System.Drawing.Size(249, 52);
            this.textBox7.TabIndex = 1;
            // 
            // textBox8
            // 
            this.textBox8.AllowDrag = false;
            this.textBox8.Location = new System.Drawing.Point(115, 13);
            this.textBox8.MaxLength = 15;
            this.textBox8.Name = "textBox8";
            this.textBox8.Size = new System.Drawing.Size(116, 20);
            this.textBox8.TabIndex = 0;
            // 
            // label14
            // 
            this.label14.AutoSize = true;
            this.label14.Location = new System.Drawing.Point(20, 16);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(43, 13);
            this.label14.TabIndex = 0;
            this.label14.Text = "Code";
            // 
            // comboBox6
            // 
            this.comboBox6.AllowDrag = false;
            this.comboBox6.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox6.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox6.FormattingEnabled = true;
            this.comboBox6.Location = new System.Drawing.Point(115, 229);
            this.comboBox6.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox6.Name = "comboBox6";
            this.comboBox6.Size = new System.Drawing.Size(116, 20);
            this.comboBox6.TabIndex = 5;
            // 
            // label15
            // 
            this.label15.AutoSize = true;
            this.label15.Location = new System.Drawing.Point(20, 232);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(60, 13);
            this.label15.TabIndex = 0;
            this.label15.Text = "Status";
            // 
            // label16
            // 
            this.label16.AutoSize = true;
            this.label16.Location = new System.Drawing.Point(20, 205);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(60, 13);
            this.label16.TabIndex = 0;
            this.label16.Text = "Item Code";
            // 
            // comboBox7
            // 
            this.comboBox7.AllowDrag = false;
            this.comboBox7.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox7.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox7.FormattingEnabled = true;
            this.comboBox7.Location = new System.Drawing.Point(115, 202);
            this.comboBox7.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox7.Name = "comboBox7";
            this.comboBox7.Size = new System.Drawing.Size(116, 20);
            this.comboBox7.TabIndex = 5;
            // 
            // comboBox8
            // 
            this.comboBox8.AllowDrag = false;
            this.comboBox8.AutoCompleteMode = Gizmox.WebGUI.Forms.AutoCompleteMode.SuggestAppend;
            this.comboBox8.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBox8.FormattingEnabled = true;
            this.comboBox8.Location = new System.Drawing.Point(115, 174);
            this.comboBox8.MaximumSize = new System.Drawing.Size(400, 20);
            this.comboBox8.Name = "comboBox8";
            this.comboBox8.Size = new System.Drawing.Size(116, 20);
            this.comboBox8.TabIndex = 5;
            // 
            // label17
            // 
            this.label17.AutoSize = true;
            this.label17.Location = new System.Drawing.Point(20, 177);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(60, 13);
            this.label17.TabIndex = 0;
            this.label17.Text = "To";
            // 
            // textBox9
            // 
            this.textBox9.AllowDrag = false;
            this.textBox9.Location = new System.Drawing.Point(115, 148);
            this.textBox9.MaxLength = 15;
            this.textBox9.Name = "textBox9";
            this.textBox9.Size = new System.Drawing.Size(116, 20);
            this.textBox9.TabIndex = 0;
            // 
            // label18
            // 
            this.label18.AutoSize = true;
            this.label18.Location = new System.Drawing.Point(20, 151);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(60, 13);
            this.label18.TabIndex = 0;
            this.label18.Text = "Sort Order";
            // 
            // label19
            // 
            this.label19.AutoSize = true;
            this.label19.Location = new System.Drawing.Point(20, 93);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(60, 13);
            this.label19.TabIndex = 0;
            this.label19.Text = "Description";
            // 
            // label20
            // 
            this.label20.AutoSize = true;
            this.label20.Location = new System.Drawing.Point(20, 67);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(60, 13);
            this.label20.TabIndex = 0;
            this.label20.Text = "Mark (+/-)";
            // 
            // textBox10
            // 
            this.textBox10.AllowDrag = false;
            this.textBox10.Location = new System.Drawing.Point(115, 64);
            this.textBox10.MaxLength = 15;
            this.textBox10.Name = "textBox10";
            this.textBox10.Size = new System.Drawing.Size(116, 20);
            this.textBox10.TabIndex = 0;
            // 
            // textBox11
            // 
            this.textBox11.AllowDrag = false;
            this.textBox11.Location = new System.Drawing.Point(115, 38);
            this.textBox11.MaxLength = 15;
            this.textBox11.Name = "textBox11";
            this.textBox11.Size = new System.Drawing.Size(116, 20);
            this.textBox11.TabIndex = 0;
            // 
            // label21
            // 
            this.label21.AutoSize = true;
            this.label21.Location = new System.Drawing.Point(20, 45);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(60, 13);
            this.label21.TabIndex = 0;
            this.label21.Text = "Lookup";
            // 
            // textBox12
            // 
            this.textBox12.AllowDrag = false;
            this.textBox12.Location = new System.Drawing.Point(115, 90);
            this.textBox12.Name = "textBox12";
            this.textBox12.Size = new System.Drawing.Size(249, 52);
            this.textBox12.TabIndex = 1;
            // 
            // textBox13
            // 
            this.textBox13.AllowDrag = false;
            this.textBox13.Location = new System.Drawing.Point(115, 13);
            this.textBox13.MaxLength = 15;
            this.textBox13.Name = "textBox13";
            this.textBox13.Size = new System.Drawing.Size(116, 20);
            this.textBox13.TabIndex = 0;
            // 
            // label22
            // 
            this.label22.AutoSize = true;
            this.label22.Location = new System.Drawing.Point(20, 16);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(43, 13);
            this.label22.TabIndex = 0;
            this.label22.Text = "Code";
            // 
            // label38
            // 
            this.label38.AutoSize = true;
            this.label38.BackColor = System.Drawing.Color.Transparent;
            this.label38.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label38.ForeColor = System.Drawing.Color.Black;
            this.label38.Location = new System.Drawing.Point(-389, 335);
            this.label38.Margin = new System.Windows.Forms.Padding(0);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(55, 13);
            this.label38.TabIndex = 0;
            this.label38.Text = "Well Code";
            // 
            // comboBox12
            // 
            this.comboBox12.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox12.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox12.ForeColor = System.Drawing.Color.Black;
            this.comboBox12.FormattingEnabled = true;
            this.comboBox12.Location = new System.Drawing.Point(-285, 332);
            this.comboBox12.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox12.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox12.Name = "comboBox12";
            this.comboBox12.Size = new System.Drawing.Size(139, 22);
            this.comboBox12.TabIndex = 14;
            // 
            // comboBox13
            // 
            this.comboBox13.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox13.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox13.ForeColor = System.Drawing.Color.Black;
            this.comboBox13.FormattingEnabled = true;
            this.comboBox13.Location = new System.Drawing.Point(-285, 358);
            this.comboBox13.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox13.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox13.Name = "comboBox13";
            this.comboBox13.Size = new System.Drawing.Size(139, 22);
            this.comboBox13.TabIndex = 15;
            // 
            // label39
            // 
            this.label39.AutoSize = true;
            this.label39.BackColor = System.Drawing.Color.Transparent;
            this.label39.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label39.ForeColor = System.Drawing.Color.Black;
            this.label39.Location = new System.Drawing.Point(-389, 361);
            this.label39.Margin = new System.Windows.Forms.Padding(0);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(64, 13);
            this.label39.TabIndex = 0;
            this.label39.Text = "Department";
            // 
            // label40
            // 
            this.label40.AutoSize = true;
            this.label40.BackColor = System.Drawing.Color.Transparent;
            this.label40.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label40.ForeColor = System.Drawing.Color.Black;
            this.label40.Location = new System.Drawing.Point(-389, 285);
            this.label40.Margin = new System.Windows.Forms.Padding(0);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(74, 13);
            this.label40.TabIndex = 0;
            this.label40.Text = "Account Code";
            // 
            // comboBox14
            // 
            this.comboBox14.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox14.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox14.ForeColor = System.Drawing.Color.Black;
            this.comboBox14.FormattingEnabled = true;
            this.comboBox14.Location = new System.Drawing.Point(-285, 307);
            this.comboBox14.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox14.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox14.Name = "comboBox14";
            this.comboBox14.Size = new System.Drawing.Size(139, 22);
            this.comboBox14.TabIndex = 13;
            // 
            // comboBox18
            // 
            this.comboBox18.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox18.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox18.ForeColor = System.Drawing.Color.Black;
            this.comboBox18.FormattingEnabled = true;
            this.comboBox18.Location = new System.Drawing.Point(-285, 282);
            this.comboBox18.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox18.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox18.Name = "comboBox18";
            this.comboBox18.Size = new System.Drawing.Size(139, 22);
            this.comboBox18.TabIndex = 12;
            // 
            // label41
            // 
            this.label41.AutoSize = true;
            this.label41.BackColor = System.Drawing.Color.Transparent;
            this.label41.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label41.ForeColor = System.Drawing.Color.Black;
            this.label41.Location = new System.Drawing.Point(-389, 310);
            this.label41.Margin = new System.Windows.Forms.Padding(0);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(45, 13);
            this.label41.TabIndex = 0;
            this.label41.Text = "Supplier";
            // 
            // comboBox19
            // 
            this.comboBox19.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox19.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox19.ForeColor = System.Drawing.Color.Black;
            this.comboBox19.FormattingEnabled = true;
            this.comboBox19.Location = new System.Drawing.Point(-285, 257);
            this.comboBox19.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox19.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox19.Name = "comboBox19";
            this.comboBox19.Size = new System.Drawing.Size(139, 22);
            this.comboBox19.TabIndex = 7;
            // 
            // label42
            // 
            this.label42.AutoSize = true;
            this.label42.BackColor = System.Drawing.Color.Transparent;
            this.label42.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label42.ForeColor = System.Drawing.Color.Black;
            this.label42.Location = new System.Drawing.Point(-60, 21);
            this.label42.Margin = new System.Windows.Forms.Padding(0);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(69, 13);
            this.label42.TabIndex = 0;
            this.label42.Text = "Description 1";
            // 
            // label43
            // 
            this.label43.AutoSize = true;
            this.label43.BackColor = System.Drawing.Color.Transparent;
            this.label43.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label43.ForeColor = System.Drawing.Color.Black;
            this.label43.Location = new System.Drawing.Point(-389, 260);
            this.label43.Margin = new System.Windows.Forms.Padding(0);
            this.label43.Name = "label43";
            this.label43.Size = new System.Drawing.Size(85, 13);
            this.label43.TabIndex = 0;
            this.label43.Text = "PO/SO/Contract";
            // 
            // label44
            // 
            this.label44.AutoSize = true;
            this.label44.BackColor = System.Drawing.Color.Transparent;
            this.label44.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label44.ForeColor = System.Drawing.Color.Black;
            this.label44.Location = new System.Drawing.Point(-389, 235);
            this.label44.Margin = new System.Windows.Forms.Padding(0);
            this.label44.Name = "label44";
            this.label44.Size = new System.Drawing.Size(44, 13);
            this.label44.TabIndex = 0;
            this.label44.Text = "Amount";
            // 
            // label45
            // 
            this.label45.AutoSize = true;
            this.label45.BackColor = System.Drawing.Color.Transparent;
            this.label45.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label45.ForeColor = System.Drawing.Color.Black;
            this.label45.Location = new System.Drawing.Point(-60, 65);
            this.label45.Margin = new System.Windows.Forms.Padding(0);
            this.label45.Name = "label45";
            this.label45.Size = new System.Drawing.Size(46, 13);
            this.label45.TabIndex = 0;
            this.label45.Text = "Purpose";
            // 
            // comboBox20
            // 
            this.comboBox20.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox20.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox20.ForeColor = System.Drawing.Color.Black;
            this.comboBox20.FormattingEnabled = true;
            this.comboBox20.Location = new System.Drawing.Point(-285, 232);
            this.comboBox20.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox20.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox20.Name = "comboBox20";
            this.comboBox20.Size = new System.Drawing.Size(139, 22);
            this.comboBox20.TabIndex = 6;
            // 
            // comboBox21
            // 
            this.comboBox21.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox21.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox21.ForeColor = System.Drawing.Color.Black;
            this.comboBox21.FormattingEnabled = true;
            this.comboBox21.Location = new System.Drawing.Point(-285, 207);
            this.comboBox21.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox21.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox21.Name = "comboBox21";
            this.comboBox21.Size = new System.Drawing.Size(139, 22);
            this.comboBox21.TabIndex = 5;
            // 
            // textBox24
            // 
            this.textBox24.BackColor = System.Drawing.SystemColors.Window;
            this.textBox24.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox24.ForeColor = System.Drawing.Color.Black;
            this.textBox24.Location = new System.Drawing.Point(24, 104);
            this.textBox24.Name = "textBox24";
            this.textBox24.Size = new System.Drawing.Size(211, 21);
            this.textBox24.TabIndex = 19;
            // 
            // label46
            // 
            this.label46.AutoSize = true;
            this.label46.BackColor = System.Drawing.Color.Transparent;
            this.label46.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label46.ForeColor = System.Drawing.Color.Black;
            this.label46.Location = new System.Drawing.Point(-389, 214);
            this.label46.Margin = new System.Windows.Forms.Padding(0);
            this.label46.Name = "label46";
            this.label46.Size = new System.Drawing.Size(38, 13);
            this.label46.TabIndex = 0;
            this.label46.Text = "Status";
            // 
            // label47
            // 
            this.label47.AutoSize = true;
            this.label47.BackColor = System.Drawing.Color.Transparent;
            this.label47.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label47.ForeColor = System.Drawing.Color.Black;
            this.label47.Location = new System.Drawing.Point(-60, 109);
            this.label47.Margin = new System.Windows.Forms.Padding(0);
            this.label47.Name = "label47";
            this.label47.Size = new System.Drawing.Size(58, 13);
            this.label47.TabIndex = 0;
            this.label47.Text = "Frequency";
            // 
            // label48
            // 
            this.label48.AutoSize = true;
            this.label48.BackColor = System.Drawing.Color.Transparent;
            this.label48.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label48.ForeColor = System.Drawing.Color.Black;
            this.label48.Location = new System.Drawing.Point(-389, 186);
            this.label48.Margin = new System.Windows.Forms.Padding(0);
            this.label48.Name = "label48";
            this.label48.Size = new System.Drawing.Size(57, 13);
            this.label48.TabIndex = 0;
            this.label48.Text = "Item Code";
            // 
            // label49
            // 
            this.label49.AutoSize = true;
            this.label49.BackColor = System.Drawing.Color.Transparent;
            this.label49.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label49.ForeColor = System.Drawing.Color.Black;
            this.label49.Location = new System.Drawing.Point(-60, 176);
            this.label49.Margin = new System.Windows.Forms.Padding(0);
            this.label49.Name = "label49";
            this.label49.Size = new System.Drawing.Size(62, 13);
            this.label49.TabIndex = 0;
            this.label49.Text = "References";
            // 
            // comboBox22
            // 
            this.comboBox22.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox22.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox22.ForeColor = System.Drawing.Color.Black;
            this.comboBox22.FormattingEnabled = true;
            this.comboBox22.Location = new System.Drawing.Point(-285, 183);
            this.comboBox22.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox22.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox22.Name = "comboBox22";
            this.comboBox22.Size = new System.Drawing.Size(139, 22);
            this.comboBox22.TabIndex = 4;
            // 
            // textBox25
            // 
            this.textBox25.BackColor = System.Drawing.SystemColors.Window;
            this.textBox25.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox25.ForeColor = System.Drawing.Color.Black;
            this.textBox25.Location = new System.Drawing.Point(24, 163);
            this.textBox25.Name = "textBox25";
            this.textBox25.Size = new System.Drawing.Size(211, 21);
            this.textBox25.TabIndex = 20;
            // 
            // comboBox23
            // 
            this.comboBox23.BackColor = System.Drawing.SystemColors.Window;
            this.comboBox23.Font = new System.Drawing.Font("Arial", 8.25F);
            this.comboBox23.ForeColor = System.Drawing.Color.Black;
            this.comboBox23.FormattingEnabled = true;
            this.comboBox23.Location = new System.Drawing.Point(-285, 159);
            this.comboBox23.Margin = new System.Windows.Forms.Padding(0);
            this.comboBox23.MaximumSize = new System.Drawing.Size(400, 0);
            this.comboBox23.Name = "comboBox23";
            this.comboBox23.Size = new System.Drawing.Size(139, 22);
            this.comboBox23.TabIndex = 3;
            // 
            // textBox26
            // 
            this.textBox26.BackColor = System.Drawing.SystemColors.Window;
            this.textBox26.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox26.ForeColor = System.Drawing.Color.Black;
            this.textBox26.Location = new System.Drawing.Point(24, 220);
            this.textBox26.Name = "textBox26";
            this.textBox26.Size = new System.Drawing.Size(211, 21);
            this.textBox26.TabIndex = 21;
            // 
            // label50
            // 
            this.label50.AutoSize = true;
            this.label50.BackColor = System.Drawing.Color.Transparent;
            this.label50.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label50.ForeColor = System.Drawing.Color.Black;
            this.label50.Location = new System.Drawing.Point(-388, 162);
            this.label50.Margin = new System.Windows.Forms.Padding(0);
            this.label50.Name = "label50";
            this.label50.Size = new System.Drawing.Size(19, 13);
            this.label50.TabIndex = 0;
            this.label50.Text = "To";
            // 
            // label51
            // 
            this.label51.AutoSize = true;
            this.label51.BackColor = System.Drawing.Color.Transparent;
            this.label51.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label51.ForeColor = System.Drawing.Color.Black;
            this.label51.Location = new System.Drawing.Point(-60, 225);
            this.label51.Margin = new System.Windows.Forms.Padding(0);
            this.label51.Name = "label51";
            this.label51.Size = new System.Drawing.Size(73, 13);
            this.label51.TabIndex = 0;
            this.label51.Text = "Delivery Point";
            // 
            // textBox27
            // 
            this.textBox27.BackColor = System.Drawing.SystemColors.Window;
            this.textBox27.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox27.ForeColor = System.Drawing.Color.Black;
            this.textBox27.Location = new System.Drawing.Point(-285, 137);
            this.textBox27.Name = "textBox27";
            this.textBox27.Size = new System.Drawing.Size(118, 21);
            this.textBox27.TabIndex = 11;
            // 
            // label52
            // 
            this.label52.AutoSize = true;
            this.label52.BackColor = System.Drawing.Color.Transparent;
            this.label52.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label52.ForeColor = System.Drawing.Color.Black;
            this.label52.Location = new System.Drawing.Point(-60, 271);
            this.label52.Margin = new System.Windows.Forms.Padding(0);
            this.label52.Name = "label52";
            this.label52.Size = new System.Drawing.Size(35, 13);
            this.label52.TabIndex = 0;
            this.label52.Text = "Prefix";
            // 
            // label53
            // 
            this.label53.AutoSize = true;
            this.label53.BackColor = System.Drawing.Color.Transparent;
            this.label53.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label53.ForeColor = System.Drawing.Color.Black;
            this.label53.Location = new System.Drawing.Point(-389, 140);
            this.label53.Margin = new System.Windows.Forms.Padding(0);
            this.label53.Name = "label53";
            this.label53.Size = new System.Drawing.Size(58, 13);
            this.label53.TabIndex = 0;
            this.label53.Text = "Sort Order";
            // 
            // textBox28
            // 
            this.textBox28.BackColor = System.Drawing.SystemColors.Window;
            this.textBox28.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox28.ForeColor = System.Drawing.Color.Black;
            this.textBox28.Location = new System.Drawing.Point(24, 289);
            this.textBox28.Name = "textBox28";
            this.textBox28.Size = new System.Drawing.Size(114, 21);
            this.textBox28.TabIndex = 9;
            // 
            // label54
            // 
            this.label54.AutoSize = true;
            this.label54.BackColor = System.Drawing.Color.Transparent;
            this.label54.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label54.ForeColor = System.Drawing.Color.Black;
            this.label54.Location = new System.Drawing.Point(-389, 86);
            this.label54.Margin = new System.Windows.Forms.Padding(0);
            this.label54.Name = "label54";
            this.label54.Size = new System.Drawing.Size(60, 13);
            this.label54.TabIndex = 0;
            this.label54.Text = "Description";
            // 
            // label55
            // 
            this.label55.AutoSize = true;
            this.label55.BackColor = System.Drawing.Color.Transparent;
            this.label55.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label55.ForeColor = System.Drawing.Color.Black;
            this.label55.Location = new System.Drawing.Point(-60, 294);
            this.label55.Margin = new System.Windows.Forms.Padding(0);
            this.label55.Name = "label55";
            this.label55.Size = new System.Drawing.Size(81, 13);
            this.label55.TabIndex = 0;
            this.label55.Text = "Vision Template";
            // 
            // label56
            // 
            this.label56.AutoSize = true;
            this.label56.BackColor = System.Drawing.Color.Transparent;
            this.label56.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label56.ForeColor = System.Drawing.Color.Black;
            this.label56.Location = new System.Drawing.Point(-389, 64);
            this.label56.Margin = new System.Windows.Forms.Padding(0);
            this.label56.Name = "label56";
            this.label56.Size = new System.Drawing.Size(57, 13);
            this.label56.TabIndex = 0;
            this.label56.Text = "Mark (+/-)";
            // 
            // textBox29
            // 
            this.textBox29.BackColor = System.Drawing.SystemColors.Window;
            this.textBox29.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox29.ForeColor = System.Drawing.Color.Black;
            this.textBox29.Location = new System.Drawing.Point(24, 266);
            this.textBox29.Name = "textBox29";
            this.textBox29.Size = new System.Drawing.Size(114, 21);
            this.textBox29.TabIndex = 22;
            // 
            // textBox30
            // 
            this.textBox30.BackColor = System.Drawing.SystemColors.Window;
            this.textBox30.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox30.ForeColor = System.Drawing.Color.Black;
            this.textBox30.Location = new System.Drawing.Point(-285, 59);
            this.textBox30.Name = "textBox30";
            this.textBox30.Size = new System.Drawing.Size(116, 21);
            this.textBox30.TabIndex = 1;
            // 
            // label57
            // 
            this.label57.AutoSize = true;
            this.label57.BackColor = System.Drawing.Color.Transparent;
            this.label57.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label57.ForeColor = System.Drawing.Color.Black;
            this.label57.Location = new System.Drawing.Point(-60, 249);
            this.label57.Margin = new System.Windows.Forms.Padding(0);
            this.label57.Name = "label57";
            this.label57.Size = new System.Drawing.Size(102, 13);
            this.label57.TabIndex = 0;
            this.label57.Text = "Received/Issued by";
            // 
            // textBox31
            // 
            this.textBox31.BackColor = System.Drawing.SystemColors.Window;
            this.textBox31.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox31.ForeColor = System.Drawing.Color.Black;
            this.textBox31.Location = new System.Drawing.Point(-285, 37);
            this.textBox31.Name = "textBox31";
            this.textBox31.Size = new System.Drawing.Size(116, 21);
            this.textBox31.TabIndex = 10;
            // 
            // textBox32
            // 
            this.textBox32.BackColor = System.Drawing.SystemColors.Window;
            this.textBox32.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox32.ForeColor = System.Drawing.Color.Black;
            this.textBox32.Location = new System.Drawing.Point(24, 243);
            this.textBox32.Name = "textBox32";
            this.textBox32.Size = new System.Drawing.Size(211, 21);
            this.textBox32.TabIndex = 8;
            // 
            // label58
            // 
            this.label58.AutoSize = true;
            this.label58.BackColor = System.Drawing.Color.Transparent;
            this.label58.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label58.ForeColor = System.Drawing.Color.Black;
            this.label58.Location = new System.Drawing.Point(-389, 42);
            this.label58.Margin = new System.Windows.Forms.Padding(0);
            this.label58.Name = "label58";
            this.label58.Size = new System.Drawing.Size(41, 13);
            this.label58.TabIndex = 0;
            this.label58.Text = "Lookup";
            // 
            // checkBox13
            // 
            this.checkBox13.AutoSize = true;
            this.checkBox13.BackColor = System.Drawing.Color.Transparent;
            this.checkBox13.CheckAlign = System.Drawing.ContentAlignment.TopRight;
            this.checkBox13.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.checkBox13.ForeColor = System.Drawing.Color.Black;
            this.checkBox13.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.checkBox13.Location = new System.Drawing.Point(-60, 337);
            this.checkBox13.Margin = new System.Windows.Forms.Padding(0);
            this.checkBox13.Name = "checkBox13";
            this.checkBox13.Size = new System.Drawing.Size(98, 17);
            this.checkBox13.TabIndex = 16;
            this.checkBox13.Text = "Suppend          ";
            this.checkBox13.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.checkBox13.UseVisualStyleBackColor = false;
            // 
            // textBox33
            // 
            this.textBox33.BackColor = System.Drawing.SystemColors.Window;
            this.textBox33.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox33.ForeColor = System.Drawing.Color.Black;
            this.textBox33.Location = new System.Drawing.Point(-285, 81);
            this.textBox33.Name = "textBox33";
            this.textBox33.Size = new System.Drawing.Size(215, 21);
            this.textBox33.TabIndex = 2;
            // 
            // label59
            // 
            this.label59.AutoSize = true;
            this.label59.BackColor = System.Drawing.Color.Transparent;
            this.label59.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label59.ForeColor = System.Drawing.Color.Black;
            this.label59.Location = new System.Drawing.Point(-60, 317);
            this.label59.Margin = new System.Windows.Forms.Padding(0);
            this.label59.Name = "label59";
            this.label59.Size = new System.Drawing.Size(55, 13);
            this.label59.TabIndex = 0;
            this.label59.Text = "lblSupplier";
            // 
            // textBox34
            // 
            this.textBox34.BackColor = System.Drawing.SystemColors.Window;
            this.textBox34.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox34.ForeColor = System.Drawing.Color.Black;
            this.textBox34.Location = new System.Drawing.Point(-285, 15);
            this.textBox34.Name = "textBox34";
            this.textBox34.Size = new System.Drawing.Size(116, 21);
            this.textBox34.TabIndex = 0;
            // 
            // textBox35
            // 
            this.textBox35.BackColor = System.Drawing.SystemColors.Window;
            this.textBox35.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox35.ForeColor = System.Drawing.Color.Black;
            this.textBox35.Location = new System.Drawing.Point(424, 307);
            this.textBox35.Name = "textBox35";
            this.textBox35.Size = new System.Drawing.Size(114, 21);
            this.textBox35.TabIndex = 23;
            // 
            // label60
            // 
            this.label60.AutoSize = true;
            this.label60.BackColor = System.Drawing.Color.Transparent;
            this.label60.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.label60.ForeColor = System.Drawing.Color.Black;
            this.label60.Location = new System.Drawing.Point(-389, 21);
            this.label60.Margin = new System.Windows.Forms.Padding(0);
            this.label60.Name = "label60";
            this.label60.Size = new System.Drawing.Size(32, 13);
            this.label60.TabIndex = 0;
            this.label60.Text = "Code";
            // 
            // textBox36
            // 
            this.textBox36.BackColor = System.Drawing.SystemColors.Window;
            this.textBox36.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.textBox36.ForeColor = System.Drawing.Color.Black;
            this.textBox36.Location = new System.Drawing.Point(24, 59);
            this.textBox36.Name = "textBox36";
            this.textBox36.Size = new System.Drawing.Size(211, 21);
            this.textBox36.TabIndex = 18;
            // 
            // MMT
            // 
            this.AutoScroll = true;
            this.Controls.Add(this.tbDetail);
            this.DockPadding.All = 3;
            this.Location = new System.Drawing.Point(0, -10);
            this.Padding = new Gizmox.WebGUI.Forms.Padding(3);
            this.Size = new System.Drawing.Size(1054, 780);
            this.Load += new System.EventHandler(this.MMT_Load);
            this.tbDetail.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgvList)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bisMMT)).EndInit();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.dgvDataSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.bisSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.expandableGroupBox1)).EndInit();
            this.expandableGroupBox1.ResumeLayout(false);
            this.pnDetail.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.picItemCode)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picSupplier)).EndInit();
            this.ResumeLayout(false);

        }
        #endregion
        int idAllowEditLanguage = 1;
        int idAddNew = 80;
        int idEdit = 81;
        int idDelete = 82;
        int idTransferIn = 83;
        int idTransferOut = 84;
        int idPrint = 85;
        int idToExcel = 276;

        private DTO.PODInfo PODInfo;
        private string _Connecstr;



        #region IHostedApplication Members

        public void InitializeApplication()
        {
        }
        //public override void AddNew()
        //{

        //    txtCode.ReadOnly = false;
        //    txtCode.BackColor = System.Drawing.Color.White;
        //    RefeshForm("");
        //    //EnableForm(true);
        //    bgTextNew();
        //    //InputText();
        //    _processStatus = "C";
        //}
        public void SetObject(object obj)
        {
            //if (obj is DTO.TVC_MVPInfo)
            //{
            //    DTO.TVC_MVPInfo info = obj as DTO.TVC_MVPInfo;
            //    SetData(info);
            //    EnableForm(true);
            //    tabControl1.SelectedTab = tbDetail;
            //    if (info.USER_ID != "")
            //    {
            //        txtUSER_ID.ReadOnly = true;
            //        _processStatus = "A";
            //    }
            //    else _processStatus = "C";
            //}

        }
        public HostedToolBarElement[] GetToolBarElements()
        {
            ArrayList objElements = new ArrayList();
            if (IsPermis(idAddNew))
                objElements.Add(new HostedToolBarButton("Add New", new IconResourceHandle("Add.png"), "C"));
            if (IsPermis(idEdit))
                objElements.Add(new HostedToolBarButton("Edit", new IconResourceHandle("Edit.png"), "A"));
            if (IsPermis(idAddNew))
                objElements.Add(new HostedToolBarButton("Copy", new IconResourceHandle("Copy.png"), "O"));
            if (IsPermis(idAddNew) || IsPermis(idEdit))
                objElements.Add(new HostedToolBarButton("Save", new IconResourceHandle("Save.png"), "S"));
            objElements.Add(new HostedToolBarButton("Skip", "Skip", new IconResourceHandle("Reject.png"), "K", false));

            if (IsPermis(idDelete))
                objElements.Add(new HostedToolBarButton("Delete", new IconResourceHandle("Delete.png"), "X"));
            objElements.Add(new HostedToolBarSeperator());
            if (IsPermis(idTransferIn))
                objElements.Add(new HostedToolBarButton("Transfer In", "Import", new IconResourceHandle("Down.png"), "TI"));
            if (IsPermis(idTransferOut))
                objElements.Add(new HostedToolBarButton("Transfer Out", "Export", new IconResourceHandle("Up.png"), "TO"));
            if (IsPermis(idToExcel))
                objElements.Add(new HostedToolBarButton("To Excel", "To Excel", new IconResourceHandle("Up.png"), "TX"));

            objElements.Add(new HostedToolBarSeperator());
            if (IsPermis(idPrint))
                objElements.Add(new HostedToolBarButton("Print", new IconResourceHandle("Print.png"), "P"));
            objElements.Add(new HostedToolBarButton("Refresh", new IconResourceHandle("Refresh.png"), "R"));

            return (HostedToolBarElement[])objElements.ToArray(typeof(HostedToolBarElement));
        }
        protected override void SetupToolBar(string strAction)
        {
            ToolBar tbarLocal = GetTbarLocal();
            bool on = true, off = false;
            if (tbarLocal == null) return;

            switch (strAction)
            {
                case "C":
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TI") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TO") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TX") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "R") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "P") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "K") { button.Enabled = on; break; } }
                    break;
                case "A":
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TI") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TO") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TX") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "R") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "P") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "K") { button.Enabled = on; break; } }
                    break;
                case "S":
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TI") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TO") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TX") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "R") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "P") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "K") { button.Enabled = on; break; } }
                    break;

                case "O":
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TI") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TO") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TX") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "R") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "P") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "K") { button.Enabled = on; break; } }
                    break;
                case "V":
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TI") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TO") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "TX") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "R") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "P") { button.Enabled = on; break; } }
                    foreach (ToolBarButton button in tbarLocal.Buttons) { if (button.Name == "K") { button.Enabled = on; break; } }
                    break;
            }

        }
        protected override void InitPermisControl()
        {
            //_permisControl.Add(new MyPermisControl(idReset, btnReset));
        }
        public void OnToolBarButtonClick(HostedToolBarButton objButton, EventArgs objEvent)
        {
            Cancel = false;
            try
            {
                sErr = "";
                string strAction = (string)objButton.Tag;

                BUS.TVC_MVPControl ctr = new BUS.TVC_MVPControl(PODInfo.Business_ID);
                switch (strAction)
                {
                    case "K":
                        skip();
                        break;
                    case "C":
                        AddNew(txtCode);
                        break;
                    case "A":
                        editRecord(txtCode);
                        break;
                    case "S":
                        //if (layout == null)
                        //    layout = new GridLayout(MainForm.ServerPath + "Resources\\Layout\\", MainForm.ServerPath + "Documents\\Layout\\" + GetMainForm().PODInfo.USER_ID + "\\", _strType);
                        //layout.GetUpDGV(dgvList);
                        //layout.SaveLayout();
                        saveRecord(txtCode);

                        break;
                    case "O":
                        copy(txtCode);
                        break;
                    case "X":
                        delete(txtCode);

                        break;
                    case "TI":
                        Forms.frmTransferIn frmTI = new Forms.frmTransferIn(_strType, GetMainForm());
                        frmTI.ShowDialog();
                        break;
                    case "TO":
                        export2Xml();
                        break;
                    case "TX":
                        export2Excel();
                        break;
                    case "R":
                        RefreshList();
                        break;
                    case "P":
                        if (dgvList.CurrentCell != null)
                        {
                            DTO.TVC_MVPInfo info = new DTO.TVC_MVPInfo((DataRowView)dgvList.CurrentRow.DataBoundItem);
                            DataTable dt = DTO.TVC_MVPInfo.ToDataTable();
                            dt.Rows.Add(info.ToDataRow(dt));
                            DataSet ds = new DataSet();
                            ds.Tables.Add(dt);
                            MainForm main = GetMainForm();
                            if (main != null)
                                main.PrintDataSet(ds, _strType);
                        }
                        break;
                }
                if (Cancel == false)
                    _processStatus = strAction;
                if (sErr == "")
                    ThrowMsg("Command: " + _processStatus);
            }
            catch (Exception ex)
            {
                ThrowMsg(ex.Message + Environment.NewLine + ex.Source);
            }
        }

        //public override void Delete()
        //{
        //    BUS.TVC_MVPControl ctr = new BUS.TVC_MVPControl(PODInfo.Business_ID);
        //    if (dgvList.CurrentCell != null)
        //    {
        //        DTO.TVC_MVPInfo info = new DTO.TVC_MVPInfo((DataRowView)dgvList.CurrentRow.DataBoundItem);
        //        if (ctr.IsExist(info.Code))
        //        {
        //            Forms.frmMsg frm = new Forms.frmMsg();
        //            frm.FormClosed += delegate(object form, FormClosedEventArgs args)
        //            {
        //                if (((Gizmox.WebGUI.Forms.Form)form).DialogResult == DialogResult.OK)
        //                {
        //                    BUS.TVC_MVPDETControl ctrdel = new BUS.TVC_MVPDETControl(PODInfo.Business_ID);
        //                    ctrdel.DeletebyCode(info.Code, ref sErr);
        //                    ctr.Delete(info.Code);
        //                    if (sErr == "")
        //                    {
        //                        GetMainForm().RemoveRecord(_strType, ((DataRowView)dgvList.CurrentRow.DataBoundItem).Row);
        //                        EnableForm(false);
        //                        RefeshForm("");
        //                        Rebind();
        //                        sErr = String.Format(clsConfigurarion.GetErrMsg("E0010", language), info.Code);
        //                    }

        //                    ThrowMsg(sErr);

        //                }

        //            };
        //            frm.ShowMsg(String.Format(clsConfigurarion.GetErrMsg("E0011", language), info.Code));

        //        }
        //        else
        //            sErr = clsConfigurarion.GetErrMsg("E0002", language);// "Data is not exist";
        //    }
        //}

        private void RefreshList()
        {
            GetMainForm().LoadDataTable(_strType);
            Rebind();
            if (layout == null)
                layout = new GridLayout(MainForm.ServerPath + "Resources\\Layout\\", MainForm.ServerPath + "Documents\\Layout\\" + GetMainForm().PODInfo.USER_ID + "\\", _strType);
            layout.ResetLayout();
            layout.SetUpDGV(dgvList);
        }

        protected override void reloadList()
        {
            Rebind();
        }
        private void InputText()
        {
            foreach (Control x in pnDetail.Controls)
            {
                if (x is TextBox || x is ComboBox || x is TVC.Modules.CustomControl.MultiColumnCombo)
                {
                    x.ForeColor = System.Drawing.Color.Black;

                }
            }
        }

        protected override ErrorStatus validateForm(ref string sErr)
        {
            ErrorStatus result = ErrorStatus.SUCCESS;
            //sErr = ValidateData();

            sErr = "";
            string sWarn = "";

            foreach (Control x in tbDetail.Controls)
            {
                if (x.Tag != null && x.Tag.ToString() == "Warning") { if (warnProvider.GetError(x) != string.Empty) sWarn += string.Format("Warning: {0}\n", warnProvider.GetError(x)); }
                else { if (errProvider.GetError(x) != string.Empty) sErr += string.Format("Error: {0}\n", errProvider.GetError(x)); }
            }

            if (sErr != "") result = ErrorStatus.ERROR;
            else if (sWarn != "") result = ErrorStatus.WARNING;

            sErr = string.Format("{0}{1}", sErr, sWarn);

            return result;
        }

        private void ValidateData()
        {

        }

        protected override bool checkExists()
        {
            TVC_MVPControl ctr = new TVC_MVPControl(PODInfo.Business_ID);
            return ctr.IsExist(GetMainForm().SUNDB, txtCode.Text);
        }




        protected override string addRecord(bool isDraft = false)
        {
            string sErr = "";
            TVC_MVPControl ctr = new TVC_MVPControl(PODInfo.Business_ID);
            TVC_MVPInfo inf = GetData();
            ctr.Add(GetMainForm().SUNDB, inf, ref sErr);
            return sErr;
        }
        protected override string updateRecord(bool isDraft = false)
        {
            TVC_MVPControl ctr = new TVC_MVPControl(PODInfo.Business_ID);
            TVC_MVPInfo inf = GetData();
            return ctr.Update(GetMainForm().SUNDB, inf);
        }
        protected override string delRecord()
        {
            TVC_MVPControl ctr = new TVC_MVPControl(PODInfo.Business_ID);
            return ctr.Delete(GetMainForm().SUNDB, txtCode.Text);
        }

        protected override void afterUpdate()
        {
            UpdateDetail(txtCode.Text);
            RefreshList();
        }
        protected override void afterAddNew()
        {
            UpdateDetail(txtCode.Text);
            RefreshList();
        }
        protected override void afterDelete()
        {
            BUS.TVC_MVPDETControl ctrdel = new BUS.TVC_MVPDETControl(PODInfo.Business_ID);
            ctrdel.DeletebyCode(GetMainForm().SUNDB, txtCode.Text, ref sErr);
            RefreshList();
        }
        //public override void Save()
        //{
        //    BUS.TVC_MVPControl ctr = new BUS.TVC_MVPControl(PODInfo.Business_ID);
        //    //if (tabControl1.SelectedTab == tbDetail)
        //    //{
        //        DTO.TVC_MVPInfo info = GetData();
        //        if ((info.Code != ""))
        //        {
        //            if (_processStatus == "A")
        //            {
        //                if (ctr.IsExist(txtCode.Text))
        //                {
        //                    sErr = ctr.Update(info);
        //                    if (sErr == "")
        //                    {
        //                        UpdateDetail(info.Code);
        //                        UpdateRecord(info);
        //                    }
        //                    else
        //                    {
        //                        MessageBox.Show(sErr, "Info", MessageBoxButtons.OK, MessageBoxIcon.Information, false);
        //                        return;
        //                    }
        //                    sErr = String.Format(clsConfigurarion.GetErrMsg("E0008", language), txtCode.Text);
        //                    MessageBox.Show("Your record is successfull saved!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information, false);
        //                }
        //                else
        //                {
        //                    Cancel = true;
        //                    sErr = clsConfigurarion.GetErrMsg("E0002", language);// "Data is not exist";
        //                    MessageBox.Show(txtCode + " is not exist, please check!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning, false);
        //                }
        //            }
        //            else if (_processStatus == "C" || _processStatus == "O")
        //            {
        //                if (!ctr.IsExist(txtCode.Text))
        //                {
        //                    ctr.Add(info, ref sErr);
        //                    if (sErr == "")
        //                    {
        //                        UpdateDetail(info.Code);
        //                        UpdateRecord(info);
        //                    }
        //                    sErr = String.Format(clsConfigurarion.GetErrMsg("E0009", language), txtCode.Text);
        //                    MessageBox.Show("Your record is successfull saved!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information, false);
        //                }
        //                else
        //                {
        //                    Cancel = true;
        //                    sErr = clsConfigurarion.GetErrMsg("E0007", language);
        //                    MessageBox.Show(info.Code + " is already existed, please check!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning, false);
        //                }
        //            }
        //        }
        //        else
        //        {
        //            //sErr = clsConfigurarion.GetErrMsg("E0002", language);
        //            ThrowMsg(sErr);
        //            MessageBox.Show("Coud not save blank code, Please check!", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning, false);
        //            //strAction = _processStatus;
        //            return;
        //        }
        //        ThrowMsg(sErr);


        //}

        private void UpdateDetail(string Code)
        {
            dgvDataSource.AllowUserToAddRows = false;
            BUS.TVC_MVPDETControl ctr = new BUS.TVC_MVPDETControl(PODInfo.Business_ID);
            if (dgvDataSource.RowCount > 0)
            {
                ctr.DeletebyCode(GetMainForm().SUNDB, Code, ref sErr);
                for (int i = 0; i < dgvDataSource.RowCount; i++)
                {
                    //DataRowView dr = 
                    BUS.SNSControl snsCtr = new BUS.SNSControl();
                    DTO.TVC_MVPDETInfo info = new DTO.TVC_MVPDETInfo((DataRowView)dgvDataSource.Rows[i].DataBoundItem);
                    info.AUTO_ID = int.Parse(snsCtr.GetCodeGen(GetMainForm().DB, "MVPDET", ref sErr));
                    info.Code = txtCode.Text;
                    if ((info.FieldName != ""))
                    {
                        ctr.Add(GetMainForm().SUNDB, info, ref sErr);
                        if (sErr == "")
                        {
                            DTO.SNSInfo snsInf = snsCtr.Get(GetMainForm().DB, "MVPDET", ref sErr);
                            int next = Convert.ToInt32(snsInf.NEXT_NUMBER);
                            if (snsInf.ResetMonth == 1 && snsInf.MODIFIEDDATE.ToString().Substring(0, 6) != DateTime.Now.ToString("yyyy") + DateTime.Now.ToString("MM"))
                            {
                                snsInf.NEXT_NUMBER = Convert.ToString(next + 1);
                            }
                            snsInf.NEXT_NUMBER = Convert.ToString(next + 1);
                            snsInf.MODIFIEDDATE = Convert.ToInt32(DateTime.Now.ToString("yyyy") + DateTime.Now.ToString("MM") + DateTime.Now.ToString("dd"));
                            snsCtr.InsertUpdate(snsInf);
                        }
                    }
                }
            }

        }

        private void Rebind()
        {

            bisMMT.DataSource = GetMainForm().GetTable(_strType);
        }

        private DTO.TVC_MVPInfo GetData()
        {
            return new DTO.TVC_MVPInfo()
            {
                Code = txtCode.Text,
                Lookup = txtLookup.Text,
                Mark = txtMark.Text,
                Description = txtDescription.Text,
                From_ = txtSort.Text,
                To_ = cboTo.Text == null ? "" : cboTo.Text.ToString(),
                ItemCode = cboItemCode.SelectedValue == null || cboItemCode.Text == "" ? "" : cboItemCode.SelectedValue.ToString(),
                Status = cboStatus.SelectedValue == null ? "" : cboStatus.SelectedValue.ToString(),
                Amount = Convert.ToDouble(txtAmount.Text),
                POSOContract = cboPO.SelectedValue == null ? "" : cboPO.SelectedValue.ToString(),
                Supplier = cboSupplier.SelectedValue == null ? "" : cboSupplier.SelectedValue.ToString(),
                WellCode = cboWellCode.SelectedValue == null ? "" : cboWellCode.SelectedValue.ToString(),
                Department = cboDepartment.SelectedValue == null ? "" : cboDepartment.SelectedValue.ToString(),
                Location = cboLocaltion.SelectedValue == null ? "" : cboLocaltion.SelectedValue.ToString(),
                Account = cboAccountCode.SelectedValue == null ? "" : cboAccountCode.SelectedValue.ToString(),
                Description1 = txtDescription1.Text,
                Purpose = txtPurpose.Text,
                Frequency = txtFrequency.Text,
                Reference = txtReferences.Text,
                DeliveryPoint = txtDelivery.Text,
                ReceivedIssued = txtReceived.Text,
                Template = txtVision.Text,
                Prefix = txtPrefix.Text,
                Suppend = chkSuppend.Checked == false ? 0 : 1,
                headShipDate = chkShipdate.Checked == false ? "0" : "1",
                headShipBy = chkShipBy.Checked == false ? "0" : "1",
                headBL = chkBL.Checked == false ? "0" : "1",
                headPI = chkPI.Checked == false ? "0" : "1",
                headFrom = chkFrom.Checked == false ? "0" : "1",
                headTo = chkTo.Checked == false ? "0" : "1",
                headPO = chkPO.Checked == false ? "0" : "1",
                headSupplier = chkSupplier.Checked == false ? "0" : "1",
                lblSupplier = txtlblSupplier.Text,
                headDepartment = chkDepartment.Checked == false ? "0" : "1",
                headWell = chkWell.Checked == false ? "0" : "1",
                headDelivery = chkDelivery.Checked == false ? "0" : "1",
                Budget = cboBudget.SelectedValue == null ? "" : cboBudget.SelectedValue.ToString(),
                BudgetAccount = cboBudgetAC.SelectedValue == null ? "" : cboBudgetAC.SelectedValue.ToString(),
                HeadBudget = ckbBudget.Checked == false ? "0" : "1",
                HeadBudgetAccount = ckbBudgetAC.Checked == false ? "0" : "1"
            };

        }

        protected override void enableForm(bool p)
        {
            foreach (Control x in pnDetail.Controls)
            {
                if (x is TextBox || x is ComboBox || x is TVC.Modules.CustomControl.MultiColumnCombo || x is NumericUpDown || x is CheckBox || x is ExpandableGroupBox)
                {
                    x.Enabled = p;
                }
            }
            foreach (Control x in expandableGroupBox1.Controls)
            {
                if ( x is CheckBox )
                {
                    x.Enabled = p;
                }
            }

            dgvDataSource.Enabled = p;
            dgvDataSource.AllowUserToAddRows = p;
        }

        protected override void loadRecord(object o)
        {
            if (o is DataRowView)
            {
                DTO.TVC_MVPInfo info = new DTO.TVC_MVPInfo((DataRowView)o);
                SetData(info);
            }
        }
        private void SetData(DTO.TVC_MVPInfo info)
        {
            txtCode.Text = info.Code;
            txtLookup.Text = info.Lookup;
            txtMark.Text = info.Mark;
            txtDescription.Text = info.Description;
            txtSort.Text = info.From_;
            cboTo.Text = info.To_;
            cboItemCode.SelectedValue = info.ItemCode;
            cboStatus.SelectedValue = info.Status;
            txtAmount.Text = info.Amount.ToString();
            cboPO.SelectedValue = info.POSOContract;
            cboAccountCode.SelectedValue = info.Account;
            cboSupplier.SelectedValue = info.Supplier;
            cboWellCode.SelectedValue = info.WellCode;
            cboDepartment.SelectedValue = info.Department;
            cboLocaltion.SelectedValue = info.Location;
            txtDescription1.Text = info.Description1;
            txtPurpose.Text = info.Purpose;
            txtFrequency.Text = info.Frequency;
            txtReferences.Text = info.Reference;
            txtDelivery.Text = info.DeliveryPoint;
            txtReceived.Text = info.ReceivedIssued;
            txtVision.Text = info.Template;
            txtPrefix.Text = info.Prefix;
            chkSuppend.Checked = info.Suppend == 0 ? Convert.ToBoolean(0) : Convert.ToBoolean(info.Suppend);
            chkShipdate.Checked = Loadheader(info.headShipDate);
            chkShipBy.Checked = Loadheader(info.headShipBy);
            chkBL.Checked = Loadheader(info.headBL);
            chkPI.Checked = Loadheader(info.headPI);
            chkFrom.Checked = Loadheader(info.headFrom);
            chkTo.Checked = Loadheader(info.headTo);
            chkPO.Checked = Loadheader(info.headPO);
            chkSupplier.Checked = Loadheader(info.headSupplier);
            txtlblSupplier.Text = info.lblSupplier;
            chkDepartment.Checked = Loadheader(info.headDepartment);
            chkWell.Checked = Loadheader(info.headWell);
            chkDelivery.Checked = Loadheader(info.headDelivery);

            cboBudget.SelectedValue = info.Budget;
            cboBudgetAC.SelectedValue = info.BudgetAccount;

            ckbBudget.Checked = Loadheader(info.HeadBudget);
            ckbBudgetAC.Checked = Loadheader(info.HeadBudgetAccount);
            //cboAccountCode.SelectedValue = 
            LoadDataSource(info.Code);
        }

        private bool Loadheader(string p)
        {

            if (p == "" || p == "0")
            {
                return false;
            }
            else
                return true;
        }
        private void LoadDataSource(string Code)
        {
            BUS.TVC_MVPDETControl ctr = new BUS.TVC_MVPDETControl(PODInfo.Business_ID);
            DataTable dt = new DataTable();
            dt = ctr.Get(GetMainForm().SUNDB, Code, ref sErr);
            dgvDataSource.DataSource = dt;

        }

        protected override void refreshForm(string str)
        {
            txtCode.Text = str;
            txtLookup.Text = str;
            txtMark.Text = str;
            txtDescription.Text = str;
            txtSort.Text = str;
            cboTo.Text = str;
            cboItemCode.Text = str;
            cboStatus.Text = str;
            txtAmount.Text = str;
            cboPO.Text = str;
            cboSupplier.Text = str;
            cboWellCode.Text = str;
            cboDepartment.Text = str;
            cboAccountCode.Text = str;
            cboLocaltion.Text = str;
            txtAmount.Text = str;
            txtDescription1.Text = str;
            txtPurpose.Text = str;
            txtFrequency.Text = str;
            txtReferences.Text = str;
            txtDelivery.Text = str;
            txtReceived.Text = str;
            txtVision.Text = str;
            txtPrefix.Text = str;
            chkSuppend.Checked = Convert.ToBoolean(0);
            chkShipdate.Checked = Convert.ToBoolean(0);
            chkShipBy.Checked = Convert.ToBoolean(0);
            chkBL.Checked = Convert.ToBoolean(0);
            chkPI.Checked = Convert.ToBoolean(0);
            chkFrom.Checked = Convert.ToBoolean(0);
            chkTo.Checked = Convert.ToBoolean(0);
            chkPO.Checked = Convert.ToBoolean(0);
            chkSupplier.Checked = Convert.ToBoolean(0);
            txtlblSupplier.Text = "";
            chkDepartment.Checked = Convert.ToBoolean(0);
            chkWell.Checked = Convert.ToBoolean(0);
            chkDelivery.Checked = Convert.ToBoolean(0);
            DTO.TVC_MVPDETInfo delinfo = new DTO.TVC_MVPDETInfo();
            dgvDataSource.DataSource = delinfo.ToDataTable();
            cboBudget.Text = "";
            cboBudgetAC.Text = "";
        }

        #endregion

        private void MMT_Load(object sender, EventArgs e)
        {
            enableForm(false);
            LoadCombo();
            LoadColCombo();
            dgvList.AutoGenerateColumns = false;
            if (!GetMainForm().IsContainsTables(_strType))
                GetMainForm().LoadDataTable(_strType);
            Rebind();
            if (layout == null)
                layout = new GridLayout(MainForm.ServerPath + "Resources\\Layout\\", String.Format("{0}Documents\\Layout\\{1}\\", MainForm.ServerPath, GetMainForm().PODInfo.USER_ID), _strType);
            layout.Module = this.ToString();
            layout.Language = language;
            layout.SetUpDGV(dgvList);
            //EnableForm(false);
            //bgTextView();
            if (idAllowEditLanguage >= GetMainForm().Permission.Length || GetMainForm().Permission[idAllowEditLanguage] == 'Y')
                AllowEditLanguage();
        }

        private void LoadColCombo()
        {
            BUS.TVC_LOOKUPControl lookup = new BUS.TVC_LOOKUPControl(PODInfo.Business_ID);
            colFieldName.DataSource = lookup.GetQuery(" SELECT zTableField.FieldName, zTableField.LabelCaption, zTableField.SourceName FROM zTableField WHERE (((zTableField.TableName)='TVC_MFMOV') AND ((zTableField.SetRowsource)='Y'))", ref sErr);
            colFieldName.DisplayMember = "LabelCaption";
            colFieldName.ValueMember = "FieldName";
        }

        private void LoadCombo()
        {
            // Item Code
            BUS.TVC_RFITMControl rfitm = new BUS.TVC_RFITMControl(PODInfo.Business_ID);
            DataTable dtX = rfitm.GetAll(GetMainForm().SUNDB, ref sErr);
            cboItemCode.DataSource = dtX;
            cboItemCode.DisplayMember = "ItemCode";
            cboItemCode.ValueMember = "ItemCode";

            mcbItemCode.Binding = dtX.Copy();
            GridLayout layoutItemCode = new GridLayout(MainForm.ServerPath
               + "Resources\\Layout\\", MainForm.ServerPath + "Documents\\Layout\\"
               + GetMainForm().PODInfo.USER_ID + "\\", "ItemCodeCBO");
            GetMainForm().InitMultiComboBox(mcbItemCode, layoutItemCode, DTO.TVC_RFITMInfo.Field.ItemCode.ToString(), DTO.TVC_RFITMInfo.Field.Description.ToString());


            // Status
            BUS.TVC_LOOKUPControl lookup = new BUS.TVC_LOOKUPControl(PODInfo.Business_ID);
            cboStatus.DataSource = lookup.GetbycboStatus(GetMainForm().SUNDB, "((Status)='' Or (Status) Is Null) AND ((TB)='TVC_MFMOV')", "Status", ref sErr);
            cboStatus.DisplayMember = "Code";
            cboStatus.ValueMember = "Code";

            // POSOContract
            string query = " SELECT CODE, NAME FROM SSRFANV WHERE  (CATEGORY='T9') AND (PROHB_POST<>'Y') AND SUN_DB='" + GetMainForm().SUNDB + "' ORDER BY CODE ";
            BUS.CommonControl _impo = new BUS.CommonControl();
            DataTable dtPCA = _impo.Getdata(_Connecstr, query, ref sErr);

            DataTable dt = lookup.GetQuery(" SELECT Code AS CODE, Description AS NAME From TVC_LOOKUP" + GetMainForm().SUNDB + " WHERE (TB='TVC_MFMOV') AND (TBField='POSOContract') AND (Status='' Or Status Is Null) ", ref sErr);
            dtPCA.Merge(dt);
            cboPO.DataSource = dtPCA;
            cboPO.DisplayMember = "Code";
            cboPO.ValueMember = "Code";

            // Localtion

            cboLocaltion.DataSource = lookup.GetbycboStatus(GetMainForm().SUNDB, " ((Status)='' Or (Status) Is Null) AND ((TB)='TVC_MFMOV') ", "Location", ref sErr);
            cboLocaltion.DisplayMember = "Code";
            cboLocaltion.ValueMember = "Code";

            //ACCNT_CODE
            string queryACCNT_CODE = " SELECT ACCNT_CODE, ACCNT_NAME FROM SSRFACC WHERE (ACCNT_CODE Like '13%' Or ACCNT_CODE Like '3%' Or ACCNT_CODE Like '8%') AND (SUSPEND<>'S' And SUSPEND<>'C')  AND (SUN_DB='" + GetMainForm().SUNDB + "')  ";
            DataTable dtacc1 = _impo.Getdata(_Connecstr, queryACCNT_CODE, ref sErr);
            DataTable dtacc2 = lookup.GetQuery(" SELECT TBField AS ACCNT_CODE, '' AS ACCNT_NAME FROM TVC_LOOKUP" + GetMainForm().SUNDB + " GROUP BY TBField, TB HAVING (((TB)='LOOKUP_ACCNT'))  ", ref sErr);
            dtacc1.Merge(dtacc2);
            DataRow dr = dtacc1.NewRow();
            dr["ACCNT_CODE"] = "";
            dr["ACCNT_NAME"] = "";
            dtacc1.Rows.Add(dr);
            cboAccountCode.DataSource = dtacc1;
            cboBudgetAC.DisplayMember = cboAccountCode.DisplayMember = "ACCNT_CODE";
            cboBudgetAC.ValueMember = cboAccountCode.ValueMember = "ACCNT_CODE";
            cboBudgetAC.DataSource = dtacc1.Copy();

            // Supplier
            cboSupplier.DataSource = lookup.GetbycboStatus(GetMainForm().SUNDB, " (Status='' Or Status Is Null) AND (TB='TVC_MFMOV') ORDER BY Code; ", "Supplier", ref sErr);
            cboSupplier.DisplayMember = "Code";
            cboSupplier.ValueMember = "Code";
            mcbSupplier.Binding = lookup.GetbycboStatus(GetMainForm().SUNDB, " (Status='' Or Status Is Null) AND (TB='TVC_MFMOV') ORDER BY Code; ", "Supplier", ref sErr);
            GridLayout layoutSupplier = new GridLayout(MainForm.ServerPath
               + "Resources\\Layout\\", MainForm.ServerPath + "Documents\\Layout\\"
               + GetMainForm().PODInfo.USER_ID + "\\", "Supplier");
            GetMainForm().InitMultiComboBox(mcbSupplier, layoutSupplier, DTO.TVC_LOOKUPInfo.Field.Code.ToString(), DTO.TVC_LOOKUPInfo.Field.Description.ToString());

			BUS.SSRFANVControl ANVCtr = new SSRFANVControl();
            // WellCode
            var dtwell = ANVCtr.GetAll_SSRFANVBU("T1", GetMainForm().SUNDB, ref sErr, MainForm.HLConnect);
            cboWellCode.DataSource = dtwell;
            cboWellCode.DisplayMember = "CODE";
            cboWellCode.ValueMember = "CODE";

            // Department
            DataTable dtDepartment = lookup.GetQuery(" SELECT Code, Description, Lookup from TVC_LOOKUP" + GetMainForm().SUNDB + " WHERE (((TB)='TVC_RFITM' Or (TB)='TVC_MFMOV') AND ((TBField)='Department') AND ((Status)='' Or (Status) Is Null)) GROUP BY Code, Description, Lookup ORDER BY Code ", ref sErr);
            cboDepartment.DataSource = dtDepartment;
            cboDepartment.DisplayMember = "Code";
            cboDepartment.ValueMember = "Code";



            cboBudget.DisplayMember = "CODE";
            cboBudget.ValueMember = "CODE";
            cboBudget.DataSource = ANVCtr.GetAll_SSRFANVBU("T2", GetMainForm().SUNDB, ref sErr, MainForm.HLConnect);

        }

        public string GetLanguage()
        {
            return language;
        }

        private void picItemCode_Click(object sender, EventArgs e)
        {
            mcbItemCode.Find();
        }

        private void picSupplier_Click(object sender, EventArgs e)
        {
            mcbSupplier.Find();
        }

        private void cboItemCode_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cboItemCode.SelectedValue != null)
            {
                mcbItemCode.Text = cboItemCode.SelectedValue.ToString();
                //txtExclaimerName.Text = ((DataTable)cboCategory.DataSource).Rows[cboCategory.SelectedIndex]["NAME"].ToString().Trim();
            }
        }

        private void cboSupplier_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cboSupplier.SelectedValue != null)
            {
                mcbSupplier.Text = cboSupplier.SelectedValue.ToString();
                //txtExclaimerName.Text = ((DataTable)cboCategory.DataSource).Rows[cboCategory.SelectedIndex]["NAME"].ToString().Trim();
            }
        }

        private void mcbItemCode_ComboText_Changed(object sender, CustomControl.MultiColumnCombo.ComboChangedEventArgs e)
        {
            if (mcbItemCode.RowData != null)
                cboItemCode.SelectedValue = mcbItemCode.RowData["ItemCode"].ToString().Trim();
        }

        private void mcbSupplier_ComboText_Changed(object sender, CustomControl.MultiColumnCombo.ComboChangedEventArgs e)
        {
            if (mcbSupplier.RowData != null)
                cboSupplier.SelectedValue = mcbSupplier.RowData["CODE"].ToString().Trim();
        }

        //private void dgvList_MenuClick_1(object objSource, MenuItemEventArgs objArgs)
        //{
        //    if (objArgs.MenuItem == mnuSaveLayout)
        //    {
        //        if (layout == null)
        //            layout = new GridLayout(MainForm.ServerPath + "Resources\\Layout\\", MainForm.ServerPath + "Documents\\Layout\\" + GetMainForm().PODInfo.USER_ID + "\\", _strType);
        //        layout.GetUpDGV(dgvList);
        //        layout.SaveLayout();
        //    }
        //    else if (objArgs.MenuItem == mnuShowFilter)
        //    {
        //        if (objArgs.MenuItem.Checked == false)
        //        {
        //            objArgs.MenuItem.Checked = true;
        //            dgvList.ShowFilterRow = true;
        //        }
        //        else
        //        {
        //            objArgs.MenuItem.Checked = false;
        //            dgvList.ShowFilterRow = false;
        //        }
        //    }
        //    else if (objArgs.MenuItem == mnuResetLayout)
        //    {
        //        if (layout == null)
        //            layout = new GridLayout(MainForm.ServerPath + "Resources\\Layout\\", String.Format("{0}Documents\\Layout\\{1}\\", MainForm.ServerPath, GetMainForm().PODInfo.USER_ID), _strType);
        //        layout.ResetLayout();
        //        layout.SetUpDGV(dgvList);
        //    }
        //}

        //private void dgvList_CellClick(object sender, DataGridViewCellEventArgs e)
        //{
        //    if (dgvList.CurrentCell != null)
        //    {
        //        DTO.TVC_MVPInfo info = new DTO.TVC_MVPInfo((DataRowView)dgvList.CurrentRow.DataBoundItem);
        //        SetData(info);
        //        //enableForm(false);
        //        //tabControl1.SelectedTab = tbDetail;
        //        _processStatus = "V";
        //    }
        //}



    }
}
